rsnext/errors/fast-refresh-reload.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

21 lines
658 B
Text

---
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)