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] fetch data at componentDidMount #344

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

VampireAchao
Copy link
Contributor

#341

see: https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#fetching-external-data

The above code is problematic for both server rendering (where the external data won’t be used) and the upcoming async rendering mode (where the request might be initiated multiple times).

The recommended upgrade path for most use cases is to move data-fetching into componentDidMount

@dengliming dengliming added the type: enhancement New feature or request label Sep 23, 2023
@dengliming dengliming merged commit d680ea3 into apache:master Sep 23, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants