/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/fast-refresh-reload.mdx
21 строка
660 B
Jam Balaya
docs: add and unify notes to error pages (#72838)
19 ноя 2024, 12:44
Не верифицирован
19 ноя 2024, 12:44
6f43529
Код
Авторство
О чём код?
--- 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)