-
I have data coming in on a route data loader and would like to retrigger the loader so I get fresh data in my component. As I see it I have a few options, none of which I particularly care for.
I apologize for the grumbling, the problem is solvable, but I couldn't help feeling like there has to be a better way. I am looking for any kind of guidance here, the docs don't quite cover the topic at the moment. I am hoping someone has solved this or there are plans to make this easier in the future. Perhaps something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using loader for initial data, and fetchers for fresh data is a common pattern for Remix. I don't think it's too cumbersome. You can always create your own custom hook to wrap this. |
Beta Was this translation helpful? Give feedback.
Using loader for initial data, and fetchers for fresh data is a common pattern for Remix. I don't think it's too cumbersome. You can always create your own custom hook to wrap this.