I apologize in advance if this is not supported or if I'm just doing something wrong, but I'm getting some inconsistent behavior when toggling some children in my view. When using conditionals in nested element's children, upon recycling, (initial renders are fine), I get a few different errors.
Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
and
Failed to execute 'insertBefore' on 'Node': parameter 2 is not of type 'Node'.
and
Cannot read property 'key' of undefined
In the meantime I'm doing stuff like this as a work around. If this was the "correct" way of doing things, I'm down for it, but some consistency between initial render and recycles might be worth looking into.
I apologize in advance if this is not supported or if I'm just doing something wrong, but I'm getting some inconsistent behavior when toggling some children in my view. When using conditionals in nested element's children, upon recycling, (initial renders are fine), I get a few different errors.
Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
andFailed to execute 'insertBefore' on 'Node': parameter 2 is not of type 'Node'.
andCannot read property 'key' of undefined
I have a repro here based on the todo app example in the read me. If you comment/uncomment some of the lines you can see the two different errors in the dev tools. https://codepen.io/dustindowell/pen/ExNYbQK?editors=1010
In the meantime I'm doing stuff like this as a work around. If this was the "correct" way of doing things, I'm down for it, but some consistency between initial render and recycles might be worth looking into.