question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Children of experiment are not updating

See original GitHub issue

Is this intended that props.children in CoreExperiment are stored in state.variants object which makes them “static” and impossible to re-render when props in children change?

I have typical case in React when prop of a component inside a Variant changes but my component will never re-render so I can’t use this module in my app 😢 And I am sad because it’s really nice and well documented 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mdrobnycommented, Sep 13, 2016

Hey, I am glad to contribute. Yes, your right about re-render, my description is too coupled to my code in my app. I will prepare an example on jsFiddle to show what I mean. Meanwhile you can try to get a hint of my problem looking at the test I wrote (despite it’s not pretty)

0reactions
wehriamcommented, Sep 29, 2016

Resolved in #13. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJs - Child not updating after Parent State changed
The issue is that you're passing the parent's state only in the child's constructor. If the parent updates props you either need to...
Read more >
New Study Disavows Marshmallow Test's Predictive Powers
Following the Bing children into their 40s, the new study finds that kids who quickly gave in to the marshmallow temptation are generally...
Read more >
Research with Children FAQs - HHS.gov
Does research involving children include special requirements? ... How do the human subject research regulations define “children”?
Read more >
How Experiments with Children Inform Economics | NBER
Finally, we provide 10 tips for pulling off experiments with children, including factors such as taking into account child competencies, causal ...
Read more >
Visual working memory in young children | SpringerLink
Experiment 1 showed that visual similarity of drawings impaired recall in young (5-year-old) children but not in older (10-year-old) children.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found