wasp
wasp copied to clipboard
Have basic support for (react-query based) manual optimistic updates and cache invalidation
Description
We want to support react-query style manual optimistic updates and cache invalidation in Wasp.
This issue needs to be further refined.
Thought: I believe doing manual optimistic updates, and doing manual cache invalidation, will turn out to be exactly the same thing, or at least very similarly thing. So it is worth exploring them together / thinking about them together.
This whole topic has also been discussed in some details as part of https://github.com/wasp-lang/wasp/issues/63 .
I also renamed the name of the issue to reflect that, feel free to split it into multiple issues if you feel like it, although I would keep it together for the start.
Thought: I believe doing manual optimistic updates, and doing manual cache invalidation, will turn out to be exactly the same thing, or at least very similarly thing. So it is worth exploring them together / thinking about them together.
Did you mean "in most, these two things happen together and the same mechanism is used to trigger them"? If so, I agree.