Interface ConfigSyncInterface

Synchronization configuration interface This interface provides the options for configuring the synchronization of actions across multiple tabs.

Note: When using multiple options (predicate, blacklist, and whitelist), only one of them will be effective. The priority is predicate > blacklist > whitelist.

Hierarchy

  • ConfigSyncInterface

Properties

blacklist?: string[]

Array of actions that will not be triggered in other tabs.

channelName?: string

Name of the communication channel to use for action synchronization.

initState?: boolean

Flag indicating whether to copy the initial state from another tab (if available).

predicate?: ((action: AnyAction) => boolean)

Type declaration

    • (action: AnyAction): boolean
    • A function to filter the actions to be synchronized based on custom criteria.

      Parameters

      • action: AnyAction

      Returns boolean

prepareState?: ((action: AnyAction) => any)

Type declaration

    • (action: AnyAction): any
    • A function to prepare the initial state for synchronization with other tabs.

      Parameters

      • action: AnyAction

      Returns any

whitelist?: string[]

Array of actions that will be triggered in other tabs.

Generated using TypeDoc