Configuring custom storage
By default localStorage
is used. However you can define other storages in one of two ways:
Setting it globally by calling
PersistStateManager.configureStorage({...})
- passed object should containclear
,getItem
,removeItem
,setItem
methods and method to gather keys from storage() => Object.keys(sessionStorage)
passing to params when calling
save
method for example:
Last updated