Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Cannot update a component (re) while rendering a different component (wi). To locate the bad setState() call inside wi, follow the stack trace as described in #710

Open
shammael opened this issue May 19, 2021 · 16 comments · May be fixed by #724

Comments

@shammael
Copy link

Captura de pantalla (3)

@rheng001
Copy link

Facing the same warning

@arnonate
Copy link

Me too... looks to be a RECOIL problem.

@vittau
Copy link

vittau commented May 31, 2021

Same issue here.

@Maclay74
Copy link

Same problem. Any solution?

@Lokom17
Copy link

Lokom17 commented Jun 8, 2021

Have the same issue

@ryansrofe
Copy link

same

@shaunstoltz
Copy link

shaunstoltz commented Jun 10, 2021

I got this working by used the source and removing all the scss imports as they were bugging in my build environment. Simple import of the index.js file from the src directory here https://github.com/brainhubeu/react-carousel/tree/master/react-carousel/src and the errors about setState were resolved.

@pittkost
Copy link

same

@AgainPsychoX
Copy link

Same issue here. Upgrading to v2 was so bad choice for me... Plugins system feels horrible, there are ton of bugs all over the place :C

@RobertHebel RobertHebel linked a pull request Jul 1, 2021 that will close this issue
@waltcow
Copy link

waltcow commented Jul 9, 2021

buggy buggy buggy

@Tran-Vinh-Quang
Copy link

Same

1 similar comment
@oigabrielteodoro
Copy link

Same

@odairto
Copy link

odairto commented Nov 24, 2021

Guys, I found a solution for my case: I'm using Redux to set the title of my pages.

In each page i had:
dispatch(setTitle("Patrimony"));

And then I changed to:

    useEffect(() => {
        dispatch(setTitle("Patrimonyyyyy"));
    }, [dispatch]);

Reading a litle about it, have the same behavior of: componentDidMount and componentDidUpdate
source: https://reactjs.org/docs/hooks-effect.html

Hope I can help someone with this.

@darwinva97
Copy link

Same. I'm using Next with dynamic import and ssr: false.

@GaroGabriel
Copy link

Same.

@The-Kevin
Copy link

This problem is discussing in the issue #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.