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.

vnode.el._node is undefined in alreadyAdopted

See original GitHub issue
screen shot 2017-11-10 at 3 08 19 pm

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
leeoniyacommented, Nov 15, 2017

Would if (vm.node.el) be the appropriate thing to check against?

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() or redraw() calls only create a vtree but never hydrate.

with these changes you should not need additional guards.

0reactions
leeoniyacommented, Nov 15, 2017

v3.2.3 with these patches is tagged.

thanks for the report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt error : nodeOps.tagName(...) is undefined in Vue ...
in my nuxt app , after changing route using this.$router.push({ path: '/path' }) i got the nodeOps.tagName(...) is undefined in firefox , ...
Read more >
JS-0239 · Consider using `let` or `const` instead of `var`
1var Vue = (function (exports) { 2 'use strict'; 3 4 /** 5 * Make a map and return a function for checking...
Read more >
Component Instance - Vue.js
Details. $el will be undefined until the component is mounted. For components with a single root element, $el will point to that element....
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