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

fix: Make sure relayout func handles incorrect input safely #85

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

othree
Copy link
Contributor

@othree othree commented Oct 20, 2023

For some reason, I see lots of e is null error.

截圖 2023-10-20 下午1 38 24

And found out that it is because the element does not exist in the DOM tree while the function is executing.
So add a simple guard to prevent the unexpected error log.

@vercel
Copy link

vercel bot commented Oct 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-wrap-balancer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2023 4:41am

@pacocoursey pacocoursey merged commit b81086c into shuding:main Mar 13, 2024
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.

2 participants