|
|
|
|
|
by dovel
2648 days ago
|
|
Do you store all UI state in redux as well as all 'resource state'? Phrased as an example... If you store a JSON object that can be edited in your store do you also store a Boolean value for whether the dialog is open that can be used for editing that JSON object? |
|
Do I want this state to survive a page reload, new browser session, or coming from a bookmark?
The value in a drop-down box in some random form? Non-global state.
The main page active tab that they were probably reading? Global state.
Scroll position? Global.
Tooltip Position? Probably not useful, non-global.
Something like a dialog or modal depends on the situation of how important it was and if the user would expect it to be there.