Dealing with "act" warning on react testing episode artwork

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

Episode metadata supplied by the publisher feed · Published Sep 3, 2021

Embed this episode

NOW PLAYING

Dealing with "act" warning on react testing

0:00 6:20

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

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!