Re:Mithril.js – A modern client-side Javascript framework
by tobyhinloopen on Saturday August 18, 2018 @09:25AM
(#17788346)
Why include XHR in a view framework?
[ Parent
| on HN ]
Re:Mithril.js – A modern client-side Javascript framework
by idoubtit on Saturday August 18, 2018 @10:04AM
(#17788495)
You can use mithril.js without m.request, but then you have to dispatch redraw events when you finished handling the request[^1]. It also provides a promise API for web requests in old browsers, i.e. without fetch(). If I choose not to use m.request, I would have to find another XMLHttpRequest wrapper and bind it to Mithril.
Re:Mithril.js – A modern client-side Javascript framework
by cmx66 on Tuesday August 21, 2018 @11:17AM
(#17810336)
It's a library for building webapps. Router and Ajax lib are a pretty obvious requirement for every webapp.
Re:Mithril.js – A modern client-side Javascript framework
by thunderbong on Saturday August 18, 2018 @09:52AM
(#17788454)
It's an MVC framework