Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Avoid React 16.13.0 update during render warning #3930

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

hwillson
Copy link
Member

@hwillson hwillson commented Apr 13, 2020

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). PR #3902 addresses some of this, but doesn't quite catch all scenarios where this can occur. These changes take things further, ensuring that React Apollo components can't force update during a render phase.

Fixes #3863

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). PR #3902 addresses some of this, but doesn't
quite catch all scenarios where this can occur. These changes take
things further, ensuring that React Apollo components can't force
update during a render phase.
@hwillson hwillson merged commit 7f2a77b into release-3.x Apr 14, 2020
@hwillson hwillson deleted the issue-3863-again branch April 14, 2020 10:22
hwillson added a commit to apollographql/apollo-client that referenced this pull request Apr 16, 2020
Prevent new data re-render attempts during an existing render
to help avoid React 16.13.0's "Cannot update a component from
inside the function body of a different component" warning
(facebook/react#17099).

These changes were originally implemented in
apollographql/react-apollo#3930.
hwillson added a commit to apollographql/apollo-client that referenced this pull request Apr 16, 2020
Prevent new data re-render attempts during an existing render
to help avoid React 16.13.0's "Cannot update a component from
inside the function body of a different component" warning
(facebook/react#17099).

These changes were originally implemented in
apollographql/react-apollo#3930.
benjamn pushed a commit to apollographql/apollo-client that referenced this pull request May 4, 2020
Prevent new data re-render attempts during an existing render
to help avoid React 16.13.0's "Cannot update a component from
inside the function body of a different component" warning
(facebook/react#17099).

These changes were originally implemented in
apollographql/react-apollo#3930.
benjamn pushed a commit to apollographql/apollo-client that referenced this pull request May 4, 2020
Prevent new data re-render attempts during an existing render
to help avoid React 16.13.0's "Cannot update a component from
inside the function body of a different component" warning
(facebook/react#17099).

These changes were originally implemented in apollographql/react-apollo#3930.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant