Replies: 3 comments 2 replies
-
In scenarios like this, the boundary between client and server state becomes blurred. I often conceptualise Whilst this does theoretically raise a red flag for duplicating state, I believe the scenario you have described is a valid exception to this rule. Just take extra care to ensure you derive the correct state on success, error etc. Tl;dr: |
Beta Was this translation helpful? Give feedback.
-
OK, so I still need to Does it just assume to |
Beta Was this translation helpful? Give feedback.
-
So What does I could imagine using
|
Beta Was this translation helpful? Give feedback.
-
The documentation suggests that it's something to do with marking the cache entry as dirty (which, bizarrely, is also called validation).
What I need is to make changes to the data -- while the user is editing it -- before sending it back.
Does it do that or do I need to get a separate
useState
to put the data in while it's being edited?Beta Was this translation helpful? Give feedback.
All reactions