Unverified Commit e18f74fe authored by Eric Piacentini's avatar Eric Piacentini Committed by GitHub

Update Fast Refresh doc (#15923)

Co-authored-by: 's avatarLuis Alvarez D <luis@vercel.com>
Co-authored-by: 's avatarTim Neutkens <timneutkens@me.com>
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent cbfb8cbc
...@@ -105,6 +105,8 @@ screen! ...@@ -105,6 +105,8 @@ screen!
Sometimes, this can lead to unexpected results. For example, even a `useEffect` 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. 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 However, writing code resilient to occasional re-running of `useEffect` is a good practice even
introduce new dependencies to it. 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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment