LocalStorage state with cross-tab sync
Retrieves the value associated with the given key.
The key to retrieve.
Removes the value associated with the given key.
The key to remove.
Sets the value for the given key.
The key to set.
The value to associate with the key.
Optional
Subscribes to external changes for cross-tab synchronization.
Callback invoked when a key changes externally.
Not all state implementations support cross-tab subscription (may no-op)
LocalStorage state with cross-tab sync