domvm: vnode.el._node is undefined in alreadyAdopted
setType triggers a root redraw. Not sure if I am triggering a race condition in domvm or if it is something I need to adjust in user land.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (12 by maintainers)
Commits related to this issue
- add failing test for #182 — committed to domvm/domvm by leeoniya 7 years ago
- fix never-before-rendered explicit vms not getting mounted during parent redraw. #182 — committed to domvm/domvm by leeoniya 7 years ago
- [devmode] add ALREADY_HYDRATED warning (#182) — committed to domvm/domvm by leeoniya 7 years ago
yeah, that should work fine as an isMounted test. but it’s shit DX so i’ve added 2 patches.
the first is a devmode warning if a prematurely hydrated vm ever reaches
syncChildren()and fucks up subview mounting.the second ensures that any userland
update()orredraw()calls only create a vtree but never hydrate.with these changes you should not need additional guards.