EPISODE · Sep 3, 2021 · 6 MIN
Dealing with "act" warning on react testing
from The Call Kent Podcast · host Kent C. Dodds
So I have a MainComponent, inside there are some “remote” components like OfficeSelect, that fetches data asynchronously on mount, using axios, everytime I test MainComponent I get the “act” warning on that OfficeSelect fetch, how do I deal with that?Fix the “not wrapped in act(…)” warning
Embed this episode
NOW PLAYING
Dealing with "act" warning on react testing
0:00
6:20
1×
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.
Frequently Asked Questions
How long is this episode of The Call Kent Podcast?
This episode is 6 minutes long.
When was this The Call Kent Podcast episode published?
This episode was published on September 3, 2021.
Can I download this The Call Kent Podcast episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!