mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
6f4352993d
## Description Unify the note format according to the [contribution guide](https://nextjs.org/docs/community/contribution-guide#notes). In addition, add missing bullet points to useful links. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide --------- Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
22 lines
660 B
Plaintext
22 lines
660 B
Plaintext
---
|
|
title: Fast Refresh had to perform full reload
|
|
---
|
|
|
|
## Why This Error Occurred
|
|
|
|
Fast Refresh had to perform a full reload when you edited a file. It may be because:
|
|
|
|
- The file you're editing might have other exports in addition to a React component.
|
|
- Your React component is an anonymous function.
|
|
- The component name is in camelCase and not PascalCase, for example `textField` instead of `TextField`.
|
|
|
|
## Possible Ways to Fix It
|
|
|
|
- Move your other exports to a separate file.
|
|
- Use a named function for your React component.
|
|
- Rename your component name to pascal case.
|
|
|
|
## Useful Links
|
|
|
|
- [Fast Refresh documentation](/docs/architecture/fast-refresh)
|