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.

this.base gets recycled while component is mounted?

See original GitHub issue

Hey, this.base gets recycled and reused somewhere else while the a component is mounted, this breaks things for me as I bind events to this.base

this only happens in beta11 not beta10 probably due to 8790b2de4fbd38eb3277cbfc7e609f5332ebbc4d

I could bind my events in some other way but don’t see a good way to do it except this.base.addEventLister/this.base.removeEventListener

thanks for any help

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
developitcommented, Jun 13, 2016

🔨 Found the proper fix! My repro was a <Router /> wrapping multiple instances of <Preview />, and re-rendering the <Preview /> with different props was incorrectly unmounting Router:

1reaction
kruczycommented, Jun 13, 2016

Great to hear that! If you need additional testing I can run it on my code as well, have one scenario it repros every time.

Though it is very weird as it is a component I use on pretty much on every page and all other seem to be just fine

The only thing I could think of is I am using 2 copies on this page nested with a bunch of components in between

Read more comments on GitHub >

github_iconTop Results From Across the Web

Circuit Board Recycling - Build Electronic Circuits
For the uninitiated, a printed circuit board is the board base for physically supporting and wiring the surface-mounted and socketed components ...
Read more >
Beneficial Use Clean Fill Protocol and Recycled Materials ...
Only uncontaminated concrete will normally qualify for unrestricted recycling, while some minimally contaminated concrete or concrete fines may qualify for ...
Read more >
The Big Problem With Plastic - Consumer Reports
The truth is that only a fraction of plastic is actually recycled. ... does only a fraction of the plastic we toss actually...
Read more >
Lithium-Ion Battery Recycling Influence of ... - ACS Publications
Recycling is a potential solution to narrow the gap between the supply and demand of raw materials for lithium-ion batteries (LIBs).
Read more >
Recycling of Polymer-Based Multilayer Packaging: A Review
This section is dedicated to methods that enable the separation of the different components in a multilayer packaging. A distinction is made between...
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