Skip to content

Commit 8881c41

Browse files
authored
Fix useState function initialiser case for optimize_server_react transform (#55551)
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(() => ...)`.
1 parent 1025011 commit 8881c41

File tree

3 files changed

+693
-38
lines changed

3 files changed

+693
-38
lines changed

0 commit comments

Comments
 (0)