[docs][rtkq] ApiProvider link on Getting Started has an unhelpful cycle
See original GitHub issueUnder RTK Query’s What’s Included section, it lists the <ApiProvider />
that “Can be used as a Provider if you do not already have a Redux store.”
After following the link to find out more, the ApiProvider
documentation says “Using this together with an existing Redux store will cause them to conflict with each other. If you are already using Redux, please follow the instructions as shown in the Getting Started guide.” which links right back to the Getting Started documentation we came from, which does not include any enlightening information about when to use the ApiProvider
versus the Provider
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It pretty much doesn’t matter. You can start with the ApiProvider now and later replace one line, or directly set up a Redux store (which is also just 5 or 6 lines).
Going from one to the other is a matter of minutes, if even that - setting up a Redux store with RTK is generally very short.
Honestly, I think you are just really really overthinking this.
I, specifically, am starting a project that I know will eventually use a Redux store, but I don’t have one yet. I could start with the
ApiProvider
, right? But is that the best decision since I know I will be adding a Redux store eventually, or is it better to start with theProvider
?