UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

23 lines (21 loc) • 553 B
import { useIdleSignOut } from "./auth/idle-timeout.js"; import { useTimezoneCookie } from "./timezone.js"; //#region src/provider.tsx /** * Wires the app into the Softr runtime, so it reacts to the platform and its settings without extra code. * * Wrap the app with it once, in the root route's document component. * * @example * <body> * <SoftrProvider>{children}</SoftrProvider> * <Scripts /> * </body> */ function SoftrProvider({ children }) { useTimezoneCookie(); useIdleSignOut(); return children; } //#endregion export { SoftrProvider };