Optimistic UI?
#3926
Replies: 2 comments 1 reply
-
@tslocke correct me if im wrong, but isn't this up to the implementor in the frontend to do? So as I see it like this:
How would that fit in SurrealDB, or in other words how would that be part of something Surreal should handle? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That way quickly becomes a lot of work. Have a look at InstandDB, Replicache, and many other solutions in the local-first space.
…On 3 Oct 2024 at 10:21 +0100, Simon ***@***.***>, wrote:
@tslocke correct me if im wrong, but isn't this up to the implementor in the frontend to do?
So function called on button click shows (successful) then fires api request if request fails returns and notify the user with a toast or similar
How would that fit in SurrealDB? :)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unless I've missed it, the website doesn't say anything directly about optimistic UI (i.e. instant updates without a backend roundtrip).
However it does mention "online and offline data sync", which is largely the same problem.
The days of click -> spinner -> update are coming to an end. Increasingly web apps are indistinguishable from fully local desktop apps, in terms of responsiveness. Making this easy is becoming table stakes for modern infrastructure IMO.
What's the SurrealDB story?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions