-
-
Notifications
You must be signed in to change notification settings - Fork 167
fix: React component as server function argument #1354
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: React component as server function argument #1354
Conversation
This test currently fails with the following error: > React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options. {children: </>} ^^^
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
Hmm, somehow the temporary references don't work as expected on the server. |
#1354 fixed with only server functions. This is for server components. - [x] add failing test - [x] fix
This test currently fails with the following error:
@dai-shi I tried to find the best place to add an e2e per #1350 (comment). Let me know if you prefer elsewhere.
(edit by @dai-shi) Added some commits and fixed it.