A hook for persistent (session) data tied to a specific view slice.
The unique id of the view.
The slice name for the session data.
The default value or a function that returns the default value.
Optional
Optional callback invoked once after data is loaded.
[state, setState, loaded] the current data, setter, and loaded flag.
A hook for persistent (session) data tied to a specific view slice.