1. 10
    Migrate a Redux Thunk to RTK Query
    3m 59s

Migrate a Redux Thunk to RTK Query

Jamund Ferguson
InstructorJamund Ferguson
Share this video with your friends

Social Share Links

Send Tweet
Published a year ago
Updated a year ago

This our longest lesson. It covers territory that we've already covered, but in a more advanced way. Here are some of the main points.

  1. When you migrate redux state into RTK Query, by mindful that you may have had initial state, which should usually be replaced with an isLoading check
  2. Like everywhere else we rely on destructuring asignment to give meaningful names to the generic data property returned from our query hook.
  3. We're also using optional chaining to deal with data before we receive a server response
  4. We're continuing to update our getServicesForLuckyDog selector here and pass in additional data, this time for our dogs
egghead
egghead
~ an hour 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