Skip to main content

Function: setupCacheSync()

setupCacheSync(): () => void

Defined in: src/utils/cacheSync.ts:124

Set up automatic cache synchronization with backend. Listens for cache invalidation events and clears appropriate frontend caches.

Returnsโ€‹

Cleanup function to remove event listeners. Call this function when the component unmounts or cache sync is no longer needed to prevent memory leaks and avoid processing events after cleanup.

(): void

Returnsโ€‹

void