@storix-js/sync
v0.1.2
Published
Cross-tab synchronization plugin for Storix.
Readme
@storix-js/sync
Cross-tab synchronization plugin for Storix.
Install
npm install @storix-js/core @storix-js/syncUsage
import { createStorix } from '@storix-js/core';
import { syncPlugin } from '@storix-js/sync';
const storix = createStorix({
plugins: [syncPlugin({ debounce: 16, namespaces: ['shell-app'] })]
});The plugin uses BroadcastChannel when available and falls back to the storage event.
