You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs after mutations but before paint. I guess this is technically after it's added to the DOM, which is relevant since if you're going to read layout (the purpose of the API) you need it to be after mutations. But I guess it depends on whether "added to the DOM" includes paint. @gaearon what did you mean here?
Summary
In here: https://react.dev/reference/react/useLayoutEffect#parameters it says:
This seems to be incorrect
Page
https://react.dev/reference/react/useLayoutEffect#parameters
Details
No response
The text was updated successfully, but these errors were encountered: