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:
Eric Piacentini 2020-08-06 09:34:05 -07:00 committed by GitHub
parent cbfb8cbcc7
commit e18f74fe2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.