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

Improve async useEffect warning #15104

Merged
merged 1 commit into from
Mar 13, 2019
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Mar 13, 2019

  1. Move the function inside an effect to reduce the confusion about deps (Add more info to FAQ about deps reactjs/react.dev#1815).
  2. Tweak capitalization (doesn't really matter but we don't capitalize effects in docs).
  3. Add a link which goes into our FAQ and itself links to a CodeSandbox demo and an article. This will unblock people who are confused about data fetching.

@gaearon gaearon merged commit 9d77a31 into facebook:master Mar 13, 2019
gaearon added a commit to gaearon/react that referenced this pull request Mar 22, 2019
@gaearon gaearon mentioned this pull request Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants