
Sign up to save your podcasts
Or


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
By Kent C. Dodds5
22 ratings
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

288 Listeners

990 Listeners

61 Listeners