-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Preact >= 10.18.2 compatability #528
Conversation
|
b804e6f
to
0946f88
Compare
c7a62d7
to
4b1c442
Compare
4b1c442
to
6eea998
Compare
Weird, I'm only seeing the lazy test fail locally. Looking into that |
vnode.type = NewType | ||
vnode[VNODE_COMPONENT].__v = vnode; | ||
vnode[VNODE_COMPONENT].__v.type = NewType; |
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.
I think line 101 & 103 can be removed since they are redundant of each other and line 59.
vnode.type = foundType; | ||
// vnode.type = foundType; | ||
if ( | ||
vnode[VNODE_COMPONENT] && | ||
'prototype' in vnode.type && | ||
vnode.type.prototype.render | ||
) { | ||
vnode[VNODE_COMPONENT].constructor = vnode.type; | ||
vnode[VNODE_COMPONENT].constructor = foundType; |
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.
I found undoing this change to fix the failing suspense test
It looks like by fixing how we copy vnodes in 10.18.2 preactjs/preact#4171 we have regressed in terms of component methods and custom-hooks.
EDIT: the first two issues are fixed however now context values get duplicated in DOM upon hot-reload... Not sure what is causing this