Table of Contents
Expected Behavior
The Experiment should render one variation and it should be displayed properly
Setup:
<Experiment name="An Experiment" userIdentifier={this.props.sessionId}> - sessionId comes from express-session
<Variant name="Variation A">
<div>
{children} - children here represent actual elements not like a parent Component
</div>
</Variant>
<Variant name="Variation B">
<div>
{children} - children here represent actual elements not like a parent Component
</div>
</Variant>
</Experiment>
Current Behavior
The Experiment does render a variation but it does not render the proper elements and its children.
Outcome:
{/* Rendered Properly */}
<div className="class">
<p className="class-p">
Hello P
</p>
<p className="class-pd">
Hello PD
</p>
</div>
{/* Current Results */}
<div className="class">
<p className="class-p">
Hello PD
</p>
<p className="class-pd">
Hello P
</p>
</div>
Possible Solution
Steps to Reproduce (for bugs)
- Start a new nextjs project
- Make a new Experiment in a page
- Add the
sessionId from express-session to the Experiment userIdentifier prop
- See the results
Context
I can not show different variants properly if the rendering keeps breaking.
Your Environment
- Version used: 2.3.0
- Browser Name and version: Chrome 86.0.4240.75 or Firefox 81
- Operating System and version (desktop or mobile): Manjaro
- Link to your project: Can not provide.
Table of Contents
Expected Behavior
The Experiment should render one variation and it should be displayed properly
Setup:
Current Behavior
The Experiment does render a variation but it does not render the proper elements and its children.
Outcome:
Possible Solution
Steps to Reproduce (for bugs)
sessionIdfrom express-session to the ExperimentuserIdentifierpropContext
I can not show different variants properly if the rendering keeps breaking.
Your Environment