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 while rendering another component" #380

Closed
wodenx opened this issue Jun 11, 2020 · 3 comments
Closed
Labels
accepted The issue is accepted for development. Prioritization to be discussed. bug Something isn't working Stale

Comments

@wodenx
Copy link
Contributor

wodenx commented Jun 11, 2020

STR

  1. Load test-site homepage
  2. Put into edit mode
  3. Click on CTA link in first Tout
  4. Click link button
  5. Observe browser console

ER

No warnings

AR

index.js:2177 Warning: Cannot update a component (`Form`) while rendering a different component (`asField(Text)`). To locate the bad setState() call inside `asField(Text)`, follow the stack trace as described in https://fb.me/setstate-in-render
@hvanyo hvanyo added the bug Something isn't working label Jun 11, 2020
@hvanyo
Copy link
Collaborator

hvanyo commented Jun 15, 2020

From a different package @wodenx

from apollographql/react-apollo#3930
As of version 16.13.0, React logs a warning when a function component is updated during another component's render phase (facebook/react#17099).

@beliayeu
Copy link
Collaborator

per https://github.com/joepuzzo/informed/issues/282 the problem should be fixed by informed update

@hvanyo hvanyo added the accepted The issue is accepted for development. Prioritization to be discussed. label Jun 23, 2020
@wodenx wodenx added the Stale label Apr 20, 2022
@TatsianaMiraniuk
Copy link
Collaborator

fixed by #384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The issue is accepted for development. Prioritization to be discussed. bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

4 participants