New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2023-08-09-effects-run-paint/ #5
Comments
Great analysis. This explains why I have this bug : https://stackoverflow.com/questions/76422864/troubleshooting-progress-bar-transition-issue-in-react-code |
@sk16 thx! glad I could help |
Hi, the article is great! But for demo 1, I tried it in my local environment in React v18.2.0, the console result is 1 3 4 2. I do not know why I got the different result compared with codesandbox. And in the codesandbox, I open the native chrome console, the result is also 1 3 4 2. It's so wired... |
When do useEffect() callbacks get run? Before paint or after paint?
Most of time useEffect() callbacks are run after paint but some time before paint.
https://jser.dev/2023-08-09-effects-run-paint/
The text was updated successfully, but these errors were encountered: