#Jankiness in optimistic ui

1 messages · Page 1 of 1 (latest)

olive bough
spring axle
#

Remove the redirect and simply return the json response and it should work fine

olive bough
#

It seems like the optimistic delete does not work at all in this example. Even after I return a json response

spring axle
#

The rest is the logic. For example, you can uncomment out the opacity style on deletion (better yet, since there's multiple actions you can do: fetcher.formData?.get('_action') === 'delete')

olive bough
#

But there's only one fetcher per component..
And the opacity was to indicate pending state..but I want to remove it immediately

left gorge
#

Ah, I see, let me debug it a bit.

olive bough
#

Okay

left gorge
#

@olive bough have you tested this locally?

#

Cause I tried it in a local env and not codesandbox, and it seems to be working as intended?

olive bough