Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

How are redux thunks implementation details?

How are redux thunks implementation details?

FromThe Call Kent Podcast


How are redux thunks implementation details?

FromThe Call Kent Podcast

ratings:
Length:
6 minutes
Released:
Feb 15, 2023
Format:
Podcast episode

Description

The official Redux recommendation is to avoid testing thunks in isolation and instead opt for integration testing with redux connected components. The main reason given is that thunks are considered implementation details.
Why are thunks considered implementation details?

 In the context of async thunks in RTK can you give examples of how testing an async thunk might lead to false negatives and false positives in our tests? 


What are your opinions on testing thunks in isolation that conditionally dispatch other actions, something that my team at work often does.


Example of a custom render method (docs on this)


How are redux thunks implementation details?
Released:
Feb 15, 2023
Format:
Podcast episode

Titles in the series (100)

The Call Kent podcast is a regular podcast where you call in with a question and Kent answers. Call in with your questions right from your web browser with any device at https://kentcdodds.com/call