atdiar / particleui

A library to make frontend app development as simple as possible.
0 stars 0 forks source link

Optimistic UI update: reimplement #18

Closed atdiar closed 9 months ago

atdiar commented 11 months ago

The current implementation of optimistic update is flawed. What needs to happen when using SetDataSetUIOptimistically is:

Also probably want to update a list of invalidations so that the User can be notified of action results.

atdiar commented 9 months ago

Eventually, left it as is for the most part. No clobbering since a request to an endpoint cannot race with itself.

Also, the user should simply not optimistically update interdependent data. It should be hard to do anyway, interdeoendent property are seldom if ever used especially wrt reactivity.