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.

Rendered nodes order changing unexpectedly

See original GitHub issue

Hi, I’m seeing a weird behavior with conditional rendering and preact-redux’s connect. Here is a jsfiddle to reproduce : https://jsfiddle.net/dhar/985cr5ct/5/

Clicking the toggle button hides First! and when clicking it again, it appears back after Second.

As discussed with @developit on slack, this will most likely be fixed in Preact 8. This issue so we don’t forget to test it when the beta is out.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
developitcommented, Apr 6, 2017

Fixed in 8.

3reactions
developitcommented, Mar 29, 2017

I’m thinking the cleanup and publish will happen today. It’s been a constant fight for time the last couple weeks as I’ve been busy with release stuff for my job. Just means the size will be 3400b instead of 2999b 😱😭

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js major version surprisingly changed overnight from ...
A deploy for one of my services started failing unexpectedly today because its Node. js major version was suddenly upgraded from v16 to...
Read more >
4 Common render problems in Blender and how to solve them
There are many potential problems when it comes to rendering. Here, we cover a few of the common ones that I have come...
Read more >
How to randomly re-render the DOM nodes' order of ...
I'm trying to shuffle cards by reordering the index of the nodes in my NodeList . How can I achieve removing and appending...
Read more >
How to identify and resolve wasted renders in React
This means it is being re-rendered by React together with the input. This is what we are calling a “wasted” render. We know...
Read more >
Reparenting a node from a CanvasLayer to a CanvasItem ...
Reparenting a node from a CanvasLayer to a CanvasItem derived node while also having another CanvasItem derived node as a sibling causes unexpected...
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