Caching data #6935
Answered
by
TkDodo
hellhorse123
asked this question in
Q&A
Caching data
#6935
-
In this React ts code I get stageData: Then i invoke function, which update status to processing on server side. In Postman i see, that status is changed, But in my code i still get status: created and only hard reload helps:
(If I choose disable cache in devTools console, error is gone) |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Feb 20, 2024
Replies: 1 comment 2 replies
-
have you invalidated the query ? also, you might have browser caching turned on, which prevents you from getting updated data. You should see the network request showing "(from browser cache)" in the devtools. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course not - it doesn't do data fetching. Promises don't know about any headers