Is it unavoidable to trigger the loader function when my action function return value? #10351
Unanswered
carltin0315
asked this question in
Q&A
Replies: 1 comment
-
It seems to me that you need to use shouldRevalidate |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I use the loader to fetch data from api and pass it as a props to a component with a form, when I edit some data and submit through the action, the loader will trigger to fetch the data again.
Can I avoid it? Because All I want is just get the result using useAcctionData without any sideeffect, I just stay in the same component without any redirect or rerender the whole page, why the loader will trigger again?
Beta Was this translation helpful? Give feedback.
All reactions