You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all insert, update, and delete mutations immediately modify the local optimistic store upon transaction creation.
There is no way to mark a mutation as "non-optimistic" — meaning it should only apply locally after server confirmation.
This limits developer control in cases where immediate speculative updates are undesirable:
Inserts that depend on complex server-side generation (e.g., cascading foreign keys).
Deletes where UX should wait for confirmation before removing data.
Updates where backend-side validation or side-effects must be confirmed first.
Proposed Solution
Extend mutation methods to accept an optimistic option.
Problem
Currently, all insert, update, and delete mutations immediately modify the local optimistic store upon transaction creation.
There is no way to mark a mutation as "non-optimistic" — meaning it should only apply locally after server confirmation.
This limits developer control in cases where immediate speculative updates are undesirable:
Proposed Solution
Extend mutation methods to accept an
optimistic
option.Example usage:
Behavior
optimistic: true
(default):optimistic: false
:Design Principles
Constraints
optimistic
defaults totrue
for backward compatibility.optimistic: false
mutations.Future Work
The text was updated successfully, but these errors were encountered: