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

feat(core): generalize elements #1199

Merged
merged 3 commits into from
Jan 29, 2025
Merged

feat(core): generalize elements #1199

merged 3 commits into from
Jan 29, 2025

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Jan 29, 2025

elements are actually used beside react nodes. For now, we hack with an array. But, this should support it better, even though it loses some type checks.

Copy link

vercel bot commented Jan 29, 2025

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

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Jan 29, 2025 1:08am

Copy link

codesandbox-ci bot commented Jan 29, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@tylersayshi
Copy link
Contributor

What's an example of an Element which isn't a ReactNode?

@dai-shi
Copy link
Owner Author

dai-shi commented Jan 29, 2025

What's an example of an Element which isn't a ReactNode?

We already use it in waku/router like IS_STATIC boolean. I'll also be using this new capability for 54_jotai.

@dai-shi dai-shi marked this pull request as ready for review January 29, 2025 01:13
@dai-shi dai-shi merged commit b3fe435 into main Jan 29, 2025
26 checks passed
@dai-shi dai-shi deleted the generalize-elements branch January 29, 2025 01:28
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