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: Error Handling in HitComponent when Hit is an Object #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MatheusMagnoCosta
Copy link

This fix addresses the unhandled runtime error that occurs when objects are used as a child in React within the HitComponent. The error is specifically triggered when an object with specific keys is detected, which is not valid in React.

The solution has been implemented to ensure a collection of children is rendered using an array instead of an object. This resolves the 'Objects are not valid as a React child' error and ensures the HitComponent operates correctly when an object is hit.

This fix addresses the unhandled runtime error that occurs when objects are used as a child in React within the HitComponent. The error is specifically triggered when an object with specific keys is detected, which is not valid in React.

The solution has been implemented to ensure a collection of children is rendered using an array instead of an object. This resolves the 'Objects are not valid as a React child' error and ensures the HitComponent operates correctly when an object is hit.
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