Change Server Reference creation on client (#48824)
Mostly mirrors the changed made in https://github.com/facebook/react/pull/26632 to our SWC transform. The implementation difference is that the AST transformer only adds a general purpose wrapper call `createServerReference(id)` from an aliased import, so we can easily change the underlying function in the bundler. This change only affects the client layer (when `self.config.is_server === false`). Needs to be landed after another React upgrade: https://github.com/vercel/next.js/pull/48697. cc @sebmarkbage.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment