Fix useState function initialiser case for `optimize_server_react` transform (#55551)
This addresses the case mentioned in https://github.com/vercel/next.js/pull/54925#pullrequestreview-1616315332. 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(() => ...)`.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment