@yoltra/react

26 exports

Functions

Interfaces

  • SuspenseAtomicPropOptionsOptions for useSuspenseAtomicProp.
  • SuspenseAtomicPropsOptionsOptions for useSuspenseAtomicProps.
  • YoltraThe value returned by createYoltra: the created `store`, an optional `StoreProvider` (plus its raw `StoreContext`), and the full set of typed hooks from YoltraHooks.
  • YoltraHooksThe bundle of fully-typed hooks returned by createHooks (and, with the store and provider added, by createYoltra).

Type Aliases

  • OneOrManyAccepts either a single value or a readonly array of that value.
  • PathValueResolves the value type at a dotted path `P` inside object/array `T`.
  • UseAtomicPropCall signature for the typed `useAtomicProp` hook returned by createHooks.
  • UseAtomicPropsCall signature for the typed `useAtomicProps` hook returned by createHooks.
  • UseEventCall signature for the typed `useEvent` hook returned by createHooks.

Variables

  • StoreContextReact Context carrying a StoreInstance for yoltra React bindings.
  • StoreProviderReact provider that places a StoreInstance into StoreContext.
  • suspenseCacheDefault Suspense cache instance shared by all `useSuspense*` hooks.