question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docs][rtkq] ApiProvider link on Getting Started has an unhelpful cycle

See original GitHub issue

Under 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
phryneascommented, Jun 25, 2021

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.

0reactions
taylorklinecommented, Jun 25, 2021

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 the Provider?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found