Skip to content

Commit

Permalink
Fix useState function initialiser case for optimize_server_react tr…
Browse files Browse the repository at this point in the history
…ansform (#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(() => ...)`.
  • Loading branch information
shuding authored Sep 19, 2023
1 parent 1025011 commit 8881c41
Show file tree
Hide file tree
Showing 3 changed files with 693 additions and 38 deletions.
Loading

0 comments on commit 8881c41

Please sign in to comment.