News for hackers. Stuff that matters.
Re:Ask HN: Why is mithril.js not popular? by sergiotapia on Tuesday April 16, 2019 @12:15PM (#19674913)
It's a non-starter for me because it doesn't seem to have Mobx support. I use mobx to handle my application's state at a global level.
Re:Ask HN: Why is mithril.js not popular? by porsager on Tuesday April 16, 2019 @01:58PM (#19675781)
Mithril works seamlessly with Mobx, you just call m.redraw in autorun(). I actually think that just underlines the strength of Mithril. No need for a special wrapper library to support other modules.
Re:Ask HN: Why is mithril.js not popular? by porsager on Tuesday April 16, 2019 @03:05PM (#19676355)
Re:Ask HN: Why is mithril.js not popular? by sergiotapia on Tuesday April 16, 2019 @03:19PM (#19676467)
Thank you! I'll take a look!

Edit: Seems like it's bugged? `fields are not currently supported`

Re:Ask HN: Why is mithril.js not popular? by fuzetsu on Tuesday April 16, 2019 @04:54PM (#19677215)
Try this version out, I enabled babel. Your browser might not support class fields yet.

https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgCsEAaEAYw...

Re:Ask HN: Why is mithril.js not popular? by foxdonut00 on Tuesday April 16, 2019 @04:20PM (#19676950)
Seems to work fine, where are you seeing this error?
Re:Ask HN: Why is mithril.js not popular? by itronitron on Tuesday April 16, 2019 @04:23PM (#19676972)
i get the same error in Firefox