Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Nov 9, 2024
1 parent 1df0de7 commit 1e39adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/basic/useSnapshot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ In dev mode, `useSnapshot` uses React's `useDebugValue` to output a list of fiel

<br />

> <span style="font-size:1.5em">‼️</span> &nbsp; There are two
> disclaimers to using the debug value
> <span style="font-size:1.5em">‼️</span> &nbsp; There are two disclaimers to
> using the debug value
>
> 1. Due to the way `useSnapshot` uses a proxy to recorded accesses _after_ `useSnapshot` has returned, the fields listed in `useDebugValue` are technically from the _previous_ render.
> 2. Object getter and class getter calls are not included in the `useDebugValue` output, but don't worry, they are actually correctly tracked internally and correctly trigger re-renders when changed.
Expand Down

0 comments on commit 1e39adb

Please sign in to comment.