What is the workflow for changing an individual value in a preferences object.
Jakobud opened this issue · comments
Looking at the example
export const preferences = persisted('preferences', {
theme: 'dark',
pane: '50%',
...
})
How could I go about changing the theme
value? What is the syntax?
let pref = get(preferences);
pref.theme = 'light';
preferences.set(preferences); // this doesn't seem right
Really just kinda not clear from your documentation examples. You just say preferences.set(...) // set value
but what is that? What value am I setting? Where do I put in the key for the object I want to change?