How you have multiple fetch loaders ? #5604
-
Hello, I have 3 selects and when you click I use fetcher.load to load my data. the problem is idk how I filter it when this data comes then I want to set it in selectData2 else in selectData1.
how can I now set the datas for selectData2 and 3 ? because when I use useEffect with fetcher I only have one data |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Mar 1, 2023
Replies: 1 comment 2 replies
-
You can call |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pullmann4rent
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can call
useFetcher
multiple times, each fetcher will have a unique state, similar to howuseState
works too.