1. 24
    Debug RTK Query Applications with the Redux DevTools Chrome Extension
    1m 12s

Debug RTK Query Applications with the Redux DevTools Chrome Extension

Jamund Ferguson
InstructorJamund Ferguson
Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 years ago

RTK Query is built on top of Redux which has the huge benefit of utlizing the Redux DevTools. Every RTK Query operation is represented with the actions and state modifications that happen in the DevTools.

There's also RTK Query tab in Redux DevTools so that you can take a detailed look at the various queries and mutations you have going at any given time.

In this lesson you'll get a basic overview of the Redux DevTools and how it works with RTK Query.

Instructor: [0:00] Go to the Chrome Web store and install the Redux DevTools extension. Open up our dog's website and down in the Inspector window, you should now see a tab that says Redux. Refresh the page one time to make sure that it's initialized. As you start to hover over things, you'll notice all sorts of actions being fired off into the Redux store.

[0:19] This is because RTK Query uses Redux internally, and so everything it does shows up in the Redux DevTool. If you scroll down here, not only will you see the actions that are fired off which you can inspect carefully, you'll also see a special tab for RTK query specifically, so that you can see all the queries that are being fired off.

[0:38] Let's go into My Dogs and click delete dog, you'll see remove dog shows up at the bottom. If I go into contact, type test@test.com and hello world, you can see my contact shows up there at the top. You can click into there, see all the different actions that get fired off for particular query, and you can go back to the Inspector window and see really all the different things that happen with Redux.

[1:01] Even if you don't normally need to reach into the Redux internals, there's a lot of benefits of RTK Query being built on Redux. One of them, of course, is having access to this fantastic DevTool.

egghead
egghead
~ 25 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today