#Seriously, how are people updating UI fast on server actions?

3 messages · Page 1 of 1 (latest)

foggy dagger
#

Really need some help for something that probably is straight forward but I'm struggling with.
I hate the delay when re validating path and want to update the UI fast, it feels trash on my app. useOptimistic works fine for one action but what happens if I have many?
Are my users meant to cop that delay and that's the standard?
Simple things are starting to feel quite difficult compared to basic state management I previously experienced otherwise it's great.
I've implemented a custom use optimistc reducer but it's disgusting and It won't be staying haha

twin coveBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

fallow prairie
#

I get you @foggy dagger In my situation, I ended up using use optimistic in only one part of the my app, because I had to make an external request. So it really feels bad waiting 1~2secs for the view to update.

Now, my other forms are quite fast, some of them I use modals, then it feels fine, because we have the modal going away, the "toaster" success message, and then the datatable gets updated with the new record.

For others more complex forms I have the list and form on different pages, so its fine.