redux-fetch icon indicating copy to clipboard operation
redux-fetch copied to clipboard

Support for React Router v4

Open oyeanuj opened this issue 8 years ago • 2 comments

Hi @ctumolosus, thank you for open sourcing this library. Wondering if you are considering adding support for React Router v4 - especially with SSR?

oyeanuj avatar Sep 01 '17 00:09 oyeanuj

Hi, @oyeanuj - I do plan to eventually support React Route 4. I need to dive deeper into their API and implementation to come up with the right approach. Unfortunately, it's not something I'm actively working on since we have a lot of other priorities. If you have some ideas, please do not hesitate to share them with me.

ctumolosus avatar Sep 01 '17 15:09 ctumolosus

@ctumolosus From my research so far, it seems the most flexible implementation would be to associate data fetching at a component level (regardless of whether it is a route component or not), and then use the strategy deployed here to make the fetch: https://github.com/ctrlplusb/react-universally/issues/479#issuecomment-326084672 (someone using it for async components with RR4, but could totally be useful for redux-fetch)

Hope that can help!

oyeanuj avatar Sep 01 '17 17:09 oyeanuj