next.js
dbfb6c49 - [test] Add failing test for `useActionState` with `'use cache'` (#86292)

Commit
43 days ago
[test] Add failing test for `useActionState` with `'use cache'` (#86292) Adds a test case demonstrating that `useActionState` doesn't work correctly when the `'use cache'` function is exported separately, due to wrong function arity information in the server reference information byte. This is currently a limitation of the Next.js compiler, which will be addressed in a future PR. Also cleans up `console.log` from the existing `useActionState` test.
Author
Parents
Loading