usePowerSyncOrNull()
function usePowerSyncOrNull(): CommonPowerSyncDatabase | null;
A variant of usePowerSync that returns null when no PowerSync database is in context (instead of throwing).
Returns
CommonPowerSyncDatabase | null
The PowerSync database instance, or null.