Giter Club home page Giter Club logo

Comments (11)

acstll avatar acstll commented on June 7, 2024

hey @TylorS

The fix is coming today. 👍

I wonder if you're creating vnodes manually, using the h function always yields an empty object for data.

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

I generally wrap up h() using hyperscript-helpers
Maybe thats my issue, but I don't believe it should be.

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

It could be some of the stuff I do in motorcycle as well

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

@TylorS no worries. I'll add the protection which is nice to have anyways…

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

👍 I appreciate it @acstll

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

Glad to help! 2.0.1 has the fix.

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

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..

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

No problem. 👍

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 😄 What do you think?

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

Yeah, that probably couldn't hurt
I really just borrowed yours, as it was much better than mine 😉

from snabbdom-to-html.

acstll avatar acstll commented on June 7, 2024

I'll do it then… haha I lifted it from virtual-dom myself as you propably noticed 😄

from snabbdom-to-html.

TylorS avatar TylorS commented on June 7, 2024

Open-source FTW! 🔥

from snabbdom-to-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.