You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
I am trying to figure out https://jsfiddle.net/robinvdvleuten/wmf8zvf8/ .
Is there a logic hidden somewhere that takes the localStorage if available ?
I am using the plugin to store a JWT (Authorization token) and as I am explicitly doing:
I get errors when localStorage is empty.
Naturally I could add a condition to check for that but from your example it seems that's already part of the plugin.
The text was updated successfully, but these errors were encountered:
gkatsanos
changed the title
More advanced example
More advanced case / how does the magic happen
Sep 29, 2017
gkatsanos
changed the title
More advanced case / how does the magic happen
Caching Authorization Token for future re-use
Sep 29, 2017
Hey Robin, Yeah I think it was a misunderstanding from my part.
In order for the persisted state to work, do you need to keep a default (empty string, null, default) value in your store/index.js ?
Hello,
I am trying to figure out https://jsfiddle.net/robinvdvleuten/wmf8zvf8/ .
Is there a logic hidden somewhere that takes the localStorage if available ?
I am using the plugin to store a JWT (Authorization token) and as I am explicitly doing:
I get errors when localStorage is empty.
Naturally I could add a condition to check for that but from your example it seems that's already part of the plugin.
The text was updated successfully, but these errors were encountered: