Skip to content
Discussion options

You must be logged in to vote

If errors are more important than stale data, I would just check for the error first in the component. Have a read here: https://tkdodo.eu/blog/status-checks-in-react-query

that said, I think it’s pretty weird for a list endpoint to return 404 instead of 200 with an empty list 🤷‍♂️

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raclariu
Comment options

Answer selected by raclariu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants