wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Have basic support for (react-query based) manual optimistic updates and cache invalidation

Open faassen opened this issue 3 years ago • 2 comments

Description

We want to support react-query style manual optimistic updates and cache invalidation in Wasp.

This issue needs to be further refined.

faassen avatar Mar 31 '22 14:03 faassen

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.

Martinsos avatar Apr 05 '22 14:04 Martinsos

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.

sodic avatar Apr 26 '22 09:04 sodic