Skip to main content

usePowerSyncStatus()

function usePowerSyncStatus(): Ref<{
connected: boolean;
connecting: boolean;
dataFlowStatus: {
downloadError: {};
downloading: boolean;
uploadError: {};
uploading: boolean;
};
hasSynced: boolean;
lastSyncedAt: {};
priorityStatusEntries: {
hasSynced: boolean;
lastSyncedAt: {};
priority: number;
}[];
getMessage: string;
isEqual: boolean;
statusForPriority: SyncPriorityStatus;
toJSON: SyncStatusOptions;
}>

Returns

Ref<{ connected: boolean; connecting: boolean; dataFlowStatus: { downloadError: {}; downloading: boolean; uploadError: {}; uploading: boolean; }; hasSynced: boolean; lastSyncedAt: {}; priorityStatusEntries: { hasSynced: boolean; lastSyncedAt: {}; priority: number; }[]; getMessage: string; isEqual: boolean; statusForPriority: SyncPriorityStatus; toJSON: SyncStatusOptions; }>

Deprecated

Use useStatus instead.