Skip to content

AuthTransitionProvider

AuthTransitionProvider(props): Element

Defined in: packages/react/src/auth/AuthTransitionContext.tsx:116

Mounts the shared auth-transition marker usePaginatedQuery/ useVexListQuerySearch compare each live page’s viewerId against, so a page that arrives while Convex is still re-evaluating an already-open subscription under a changing identity (a sign-in/out — no args-level signal, so the query key never rotates) never gets painted: the list hooks keep the CURRENT (dimmed) rows until a page tagged with the identity AuthTransitionState.beginTransition named actually arrives, instead of guessing “has it probably settled yet” from a timer.

Mount once, near the root — alongside ConvexClientProvider/ BetterAuthClientProvider in each app’s ClientProviders.

ReactNode

The subtree that reads/writes the transition marker.

Element

The context provider wrapping children.