UNPKG

wxt-zustand

Version:

High-performance Zustand state management for WXT web extensions with seamless cross-tab synchronization and sub-10ms React re-renders

9 lines 509 B
import type { StoreApi } from 'zustand'; /** * Fetch initial state from the background service and apply it to the local store. * - Uses readiness caching to avoid duplicate initialization work per store+name. * - Follows best practices for initial state loading in WXT extensions. * - Optimized to avoid double-fetch by using a connect+fetch helper. */ export declare function syncInitialStateFromBackground<S>(storeName: string, store: StoreApi<S>): Promise<void>; //# sourceMappingURL=initial.d.ts.map