Closed TylorS closed 8 years ago
hey @TylorS
The fix is coming today. :+1:
I wonder if you're creating vnodes manually, using the h
function always yields an empty object for data
.
I generally wrap up h()
using hyperscript-helpers
Maybe thats my issue, but I don't believe it should be.
It could be some of the stuff I do in motorcycle as well
@TylorS no worries. I'll add the protection which is nice to have anyways…
:+1: I appreciate it @acstll
Glad to help! 2.0.1
has the fix.
Super speedy! Thanks again.
Not sure if it's something you're interested in, but I whipped up this little library you may be interested in https://github.com/TylorS/snabbdom-selector. It basically just takes a snabbdom vTree and parses it for css-selectors. I'm attempting to use it for Motorcycle, but I'm not sure if it would be handy for you or others..
No problem. :+1:
Thanks for sharing. I'll let you know if I find a use for it. One thing I noticed is that it might be a good idea to abstract the parseSelector
function into its own module so we stop reproducing it every time :smile: What do you think?
Yeah, that probably couldn't hurt I really just borrowed yours, as it was much better than mine :wink:
I'll do it then… haha I lifted it from virtual-dom
myself as you propably noticed :smile:
Open-source FTW! :fire:
Hello @acstll easy fixes here :+1:
Overview
When trying to convert snabbdom vnodes to html and vnode.data is undefined 3 separate errors occur.
props
on undefinedstyle
on undefinedns
on undefinedPossible Fix
Or more checks can be done to ensure other things are not being missed.