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
Is there a way, to store states globally.
I know you can use immutable.js, which is described in the docs,
but i need to store data for just a few seconds, not persistent.
The text was updated successfully, but these errors were encountered:
ludescher
changed the title
Global State
Global States without immutable.js ?
Sep 7, 2017
Hi! If you are looking to store some data across your app and you are not concerned about immutability etc then perhaps try something like this configuration file:
Replace let configuration = Map(); with let configuration = {} to use a regular JS object instead of the immutable Map, and then change the various functions to modify and share that instead. Said functions can then be imported wherever you need.
Is there a way, to store states globally.
I know you can use immutable.js, which is described in the docs,
but i need to store data for just a few seconds, not persistent.
The text was updated successfully, but these errors were encountered: