next.js
Allow server functions to be used as client component props in `'use cache'`
#81431
Merged

Allow server functions to be used as client component props in `'use cache'` #81431

unstubbable
unstubbable Add a failing e2e test
ea76da92
unstubbable Also test function expression
ea497e4c
unstubbable Wrap hoisted server functions in `registerServerReference`
4a361e19
unstubbable Hoist `registerServerReference` statement separately
9247321a
unstubbable Expand test to cover nested caches as well (failing)
740f5279
unstubbable Hoist `registerServerReference` statement separately for `'use cache'``
f4b89e9f
unstubbable Avoid unnecessary refs
43cce557
unstubbable Delete unnecessary function
f93cd8a4
unstubbable Update test config and exclude from dedicated PPR tests
72f09b70
ijjk ijjk added created-by: Next.js team
ijjk ijjk added tests
ijjk ijjk added Turbopack
ijjk
ijjk
codspeed-hq
unstubbable Make test deployable
ef36aeac
unstubbable 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
unstubbable commented on 2025-07-09
unstubbable unstubbable marked this pull request as ready for review 316 days ago
unstubbable unstubbable requested a review from lubieowoce lubieowoce 316 days ago
lubieowoce
lubieowoce approved these changes on 2025-07-09
unstubbable unstubbable merged 4d3a02d8 into canary 316 days ago
unstubbable unstubbable deleted the hl/hoist-register-server-reference branch 316 days ago
github-actions github-actions added locked
github-actions github-actions locked as resolved and limited conversation to collaborators 302 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone