User Store creation
This store inherits from the useContactStore, which in turn inherits from the useItemStore.
In addition, the Store extends the setData method also declared in the parent Store useItemStore. For the setData method to be extended, it must be declared in the extendedState.options.actionsToExtends parameter.
The store is also persisted every time its state is modified, thanks to the extendedState.options.watchMutation option, and sensitive data is encrypted thanks to the extendedState.options.persist.persistedPropertiesToEncrypt option (see localStorage "connectedUser" key).
Uses the extendedState
function to obtain default and required state properties for the plugin.
extendedState
function documentation @see
For more information on parent stores extended by useUserStore : Github repo