Skip to main content
‹ One tree
Types

Types

The types of one tree.

SectionOne treeDraftDocumented, not reviewed yet: the API can change.

AppProvider​

Type

Wraps the whole app once, in one React tree with every screen: what it holds (a store, a query client, a theme) lives as long as the app does, whatever the navigation does.

type AppProvider = ComponentType<{ children: ReactNode }>
Defined in src/engine/slots.ts ↗

ScreenProvider​

Type

Wraps every screen on its own.

type ScreenProvider = ComponentType<{ children: ReactNode; screen: ScreenInfo }>
Defined in src/api/screens/registerScreens.tsx ↗