Commit 8881c41
authored
Fix useState function initialiser case for
This addresses the case mentioned in #54925 (review). We can't optimize the case where we can't statically determine the type of the `useState` argument as it can be a function: `useState(() => ...)`.optimize_server_react transform (#55551)1 parent 1025011 commit 8881c41
File tree
3 files changed
+693
-38
lines changed- packages/next-swc/crates/core
- src
- tests/fixture/optimize_server_react/3
3 files changed
+693
-38
lines changed
0 commit comments