rsnext/packages
Shu Ding f5917ad3ee
Fix server component render condition (#35663)
We are currently using `!!ComponentMod.__next_rsc__` as the hint for the renderer to tell if the component is a server component, however that export field (`__next_rsc__`) is assigned to client components (`.client.[ext]`) as well. 

This PR adds a new `__next_rsc_server__` field which is only true when the component is a server component so the renderer can handle client components correctly.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-03-28 14:24:57 +00:00
..
create-next-app v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
eslint-config-next v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
eslint-plugin-next v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next Fix server component render condition (#35663) 2022-03-28 14:24:57 +00:00
next-bundle-analyzer v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-codemod v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-env v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-mdx v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-plugin-storybook v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-polyfill-module v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-polyfill-nomodule v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
next-swc v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
react-dev-overlay v12.1.2-canary.0 2022-03-26 22:32:33 -05:00
react-refresh-utils v12.1.2-canary.0 2022-03-26 22:32:33 -05:00