Skip to content
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

Fixed hydration error within Index.tsx #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xScratch
Copy link

Basically, I was trying out this template to know how all this stuff works and following the instructions mentioned in the README.md. Changed nothing except the inclusion of my IDs, keys, etc. That's where I faced these errors after running the development server. It happens mostly when refreshing the page.

Screenshot (118)

Screenshot (119)

Quickly got that it has something to do with the rendering stuff, thus made these fixes - Usage of useEffect in order to trigger a re-render on the client side.

Highly appreciate it if you could get a better approach or if there's another way by which this issue can be solved. But honestly, this change of code does work. Thus, thought of pushing it out to the codebase itself.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant