Update Fast Refresh doc (#15923)
Co-authored-by: Luis Alvarez D <luis@vercel.com> Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: Joe Haddad <timer150@gmail.com>
This commit is contained in:
parent
cbfb8cbcc7
commit
e18f74fe2d
1 changed files with 5 additions and 3 deletions
|
@ -105,6 +105,8 @@ screen!
|
|||
|
||||
Sometimes, this can lead to unexpected results. For example, even a `useEffect`
|
||||
with an empty array of dependencies would still re-run once during Fast Refresh.
|
||||
However, writing code resilient to occasional re-running of `useEffect` is a
|
||||
good practice even without Fast Refresh. This makes it easier for you to later
|
||||
introduce new dependencies to it.
|
||||
|
||||
However, writing code resilient to occasional re-running of `useEffect` is a good practice even
|
||||
without Fash Refresh. It will make it easier for you to introduce new dependencies to it later on
|
||||
and it's enforced by [React Strict Mode](/docs/api-reference/next.config.js/react-strict-mode),
|
||||
which we highly recommend enabling.
|
||||
|
|
Loading…
Reference in a new issue