mithi / epic-react-exercises

Practical React exercises with detailed solutions.
https://epic-react-exercises.vercel.app
Apache License 2.0
159 stars 36 forks source link

🐞 Flash of unstyled content from moving from page 1 to 2 and back #64

Closed mithi closed 3 years ago

mithi commented 3 years ago

This bug seems to be introduced when I refactored https://github.com/mithi/epic-notes/blob/main/components/notebook/index.js

This fixes it for some reason, but I'm not entirely sure why.

I think it has something to do with the fact that the components are split into subcomponents, and this maybe due to unnecessary rerendering...

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mithi/epic-notes/5ef3tkese
✅ Preview: https://epic-notes-git-fix-fouc.mithi.vercel.app