How to handle cached loaders when doing optimistic UI? #9991
Unanswered
reloadedhead
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'd like to apologise beforehand if this has already been discussed. I was not able to find it the repo. My question is how to handle cached loader responses (using
cache-control
directives) and optimistic UI.I have faced the following situation:
formData
, and filtering out deleted item.Deletion is just a button wrapped in a
useFetcher
form.I've tried busting the cache with a redirect response after deletion, with the
cache-control
directivenone
with no success (which kinda makes sense...). I feel there's something from the web platform I am missing.Beta Was this translation helpful? Give feedback.
All reactions