-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) - scu without children #1888
Conversation
Hey @mzealey if you feel up to it, feel free to test with this branch. I think all cases SHOULD be resolved. Thank you so much for the error reports and following this up |
Yes this fixes my live use-case thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thanks for the good test cases 👍
When a component bails out using My fix in #229c135 fixes this. It adds some bytes to the bundle (Update: Travis says it adds 32 bytes). Since I couldn't get my local build to run (terser issue) I could not yet do advanced bytes golfing, so feel free to try your luck reducing the footprint of this fix 🍀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So good! Love that you two worked together to get to the bottom of it 👍 💯
vs.
where the later saves 11B but is slower during runtime. What to prefer? |
@sventschui my suggestion would be that we use the Also I wondered if this was smaller? const c = newVNode._children;
for (tmp = c.length; tmp--; ) {
if (c[tmp]) c[tmp]._parent = newVNode;
} |
No description provided.