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

Children always render as an array #8

Closed
jonathandewitt-dev opened this issue Sep 6, 2024 · 1 comment
Closed

Children always render as an array #8

jonathandewitt-dev opened this issue Sep 6, 2024 · 1 comment
Assignees

Comments

@jonathandewitt-dev
Copy link
Owner

This ordinarily isn't an issue, but other packages may blacklist array children, which will cause compatibility issues. In particular, this markdown component that throws when it receives anything other than a string as a direct child.

This issue occurs because of React.Children.map() in emulated DSD. Let's update this to convert single-item arrays back to a direct child.

@jonathandewitt-dev jonathandewitt-dev self-assigned this Sep 6, 2024
@jonathandewitt-dev
Copy link
Owner Author

This should be fixed as of v1.0.6. Closing this issue.

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

No branches or pull requests

1 participant