Function: createSiteSyncActions()
createSiteSyncActions(
deps
:SiteSyncDependencies
):SiteSyncActions
Defined in: src/stores/sites/useSiteSync.ts:198
Creates site synchronization actions with injected dependencies.
Parametersโ
depsโ
Dependencies required for synchronization operations
Returnsโ
Complete set of synchronization actions
Remarksโ
Factory function that creates all site synchronization actions with proper dependency injection. This pattern allows for easier testing and maintains separation of concerns between the sync logic and store state management.
The created actions handle:
- Full backend synchronization
- Real-time status updates via WebSocket-like events
- Sync status monitoring and reporting
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error handling and recovery