Skip to main content

useStatusOrNull()

function useStatusOrNull(): SyncStatus | null;

A variant of useStatus that returns null when no PowerSync database is in context (instead of throwing).

Returns​

SyncStatus | null

The current sync status of the PowerSync database, or null.