next.js
Allow server functions to be used as client component props in `'use cache'`
#81431
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
10
Changes
View On
GitHub
Allow server functions to be used as client component props in `'use cache'`
#81431
unstubbable
merged 10 commits into
canary
from
hl/hoist-register-server-reference
Add a failing e2e test
ea76da92
Also test function expression
ea497e4c
Wrap hoisted server functions in `registerServerReference`
4a361e19
Hoist `registerServerReference` statement separately
9247321a
Expand test to cover nested caches as well (failing)
740f5279
Hoist `registerServerReference` statement separately for `'use cache'``
f4b89e9f
Avoid unnecessary refs
43cce557
Delete unnecessary function
f93cd8a4
Update test config and exclude from dedicated PPR tests
72f09b70
ijjk
added
created-by: Next.js team
ijjk
added
tests
ijjk
added
Turbopack
Make test deployable
ef36aeac
unstubbable
changed the title
[wip] Hoist `registerServerReference` expression
Allow server functions to be used as client component props in `'use cache'`
316 days ago
unstubbable
commented on 2025-07-09
unstubbable
marked this pull request as ready for review
316 days ago
unstubbable
requested a review
from
lubieowoce
316 days ago
lubieowoce
approved these changes on 2025-07-09
unstubbable
merged
4d3a02d8
into canary
316 days ago
unstubbable
deleted the hl/hoist-register-server-reference branch
316 days ago
github-actions
added
locked
github-actions
locked
as resolved
and limited conversation to collaborators
302 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
lubieowoce
Assignees
No one assigned
Labels
created-by: Next.js team
Turbopack
locked
tests
Milestone
No milestone
Login to write a write a comment.
Login via GitHub