Git Product home page Git Product logo

Comments (4)

pygy avatar pygy commented on June 1, 2024 1

It would definitely be slower than what you have now, but it would also be more correct, for a variety of scenarios (support all hooks, keyed diff, proper state). The Mithril mocks are probably sufficient for this, and faster than jsdom. I'll give it a try.

The mocks have been re-written for Mithril v1, hopefully they are better suited than the previous version. A possible problem is that they don't implement every element property getter/setter that real DOM nodes do, which means that some values would end up being set as attributes instead of properties...

The result would not be 100% compatible though, because some functions that currently return elements would return DOM nodes instead.

I already worked on this a bit, but m gf drove on my laptop in the mean time (my fault :-/, I had left it leaning on the bumper), and I have to recover the files from the HD (which is intact).

from mithril-query.

StephanHoyer avatar StephanHoyer commented on June 1, 2024

Thanks for your comment.

@tombh already tried to use jsdom for this. It turned out not to be as fast and reliable as the current version.

#14

If you want to try this again feel free to do so. I'm sure you could make that happen. I currently don't have the time to do that.

from mithril-query.

StephanHoyer avatar StephanHoyer commented on June 1, 2024

I just tried to implement class components. It's tricky and you are right for sure. 100% compatibility with core would be pretty cool.

from mithril-query.

StephanHoyer avatar StephanHoyer commented on June 1, 2024

obsolete now as we use domino

from mithril-query.

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.