-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Currently, we have a global config of namespace & delimiter. Once configured the local storage hooks can read keys of a given namespace only.
Yet there might be use cases especially in micro frontends where we might need to fetch keys from a different namespace. Hence proposing the solution of overriding the default config by providing the config as args to the hook.
const [user] = useLocalStorage('user', { namespace: 'global', delimiter: '#' })
Reactions are currently unavailable