We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest
During SSR, given a component:
@Component({ tag: 'my-component', shadow: true, }) export class MyApp { @Prop() aProp; render() { return <Host>My Prop: {this.aProp}</Host>; } }
Used like:
<my-component></my-component> <my-component a-prop="second-component"></my-component>
The outputted HTML will be something like:
<my-component class="hydrated" s-id="3"> ... My Prop: second-component </my-component> <my-component a-prop="second-component" class="hydrated" s-id="4"> ... My Prop: second-component </my-component>
^^ the last set a-prop will be rendered in all components.
a-prop
After the client script takes-over, the correct state will then be set.
Component should not 'share' their initial props in anyway.
https://stackblitz.com/edit/stencil-start-6at4nont?file=views%2Fmultiple-component.html,src%2Fcomponents%2Fmulti-component.tsx
Click on 'mulitple-component' < the client side script has intentionally not been included.
The text was updated successfully, but these errors were encountered:
This has been released in @stencil/[email protected]
@stencil/[email protected]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Prerequisites
Stencil Version
Latest
Current Behavior
During SSR, given a component:
Used like:
The outputted HTML will be something like:
^^ the last set
a-prop
will be rendered in all components.After the client script takes-over, the correct state will then be set.
Expected Behavior
Component should not 'share' their initial props in anyway.
System Info
Steps to Reproduce
https://stackblitz.com/edit/stencil-start-6at4nont?file=views%2Fmultiple-component.html,src%2Fcomponents%2Fmulti-component.tsx
Click on 'mulitple-component' < the client side script has intentionally not been included.
Code Reproduction URL
https://stackblitz.com/edit/stencil-start-6at4nont?file=views%2Fmultiple-component.html,src%2Fcomponents%2Fmulti-component.tsx
Additional Information
The text was updated successfully, but these errors were encountered: