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

[Columns] Fix check for child as lazy node Column #891

Merged
merged 2 commits into from
Aug 28, 2024
Merged

[Columns] Fix check for child as lazy node Column #891

merged 2 commits into from
Aug 28, 2024

Conversation

pedrodim
Copy link
Member

Closes #835

Fix based on this comment. As the check now uses internals from a canary version of React any future updates to the payload format could break the check.

@pedrodim pedrodim requested review from gabro and veej August 28, 2024 13:40
Copy link
Member

@gabro gabro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good! How did you test this?

@pedrodim
Copy link
Member Author

pedrodim commented Aug 28, 2024

@gabro I made a bento build with the fix locally, replaced the updated build onto a Next.js project's node_modules and run the app 😄

<Columns space={16}>
  <Column>
    <Body size="small">Server A</Body>
  </Column>
  <Column width="3/5">
    <Body size="small">Server B</Body>
  </Column>
  <Column>
    <Body size="small">Server C</Body>
  </Column>
</Columns>

(client is the same but on a file with "use client")

Result: both server and client keep the width.
Screenshot 2024-08-28 at 16 11 53

@gabro
Copy link
Member

gabro commented Aug 28, 2024

Good enough! Thanks

@gabro gabro added the bug Something isn't working label Aug 28, 2024
@gabro gabro merged commit 68807ab into main Aug 28, 2024
11 checks passed
@gabro gabro deleted the bento-835 branch August 28, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Column is not working with RSC
2 participants