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
Create a context Preferences which has an initial value of preferences read from local storage.
On mounting, send a 'request' (in the meantime this is what is mocked - just a fn which returns a promise for a hardcoded object) which also stores to local storage
Have a usePreference(prefKey) (just a string or hard coded enums for type safety 🤔 )
The text was updated successfully, but these errors were encountered:
An idea! Woah!
usePreference(prefKey)
(just a string or hard coded enums for type safety 🤔 )The text was updated successfully, but these errors were encountered: