-
-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m.route.Link WTF??? #2532
Comments
@joshuajameshunt This specific component had been in the talks for over a year. What us maintainers found from experience was that using lifecycle hooks was counterintuitively resulting in more boilerplate and making it harder to use. Also, it was harder to get right: the old We've been very cautious on which components to include in core, trust me. There's a couple other components I've looked into, with only one having a serious shot at making its way into the core bundle:
|
Also, side note: GitHub supports Markdown in comments. You can place emphasis |
@isiahmeadows I appreciate you taking the time to explain this. I'm reassured that you are doing your best to keep Mithril "light and yet harder than tempered steel" and that you share my concern over built-in components and other bloating. Having never encountered the The more similar Mithril becomes to React the less reason there is to choose Mithril. It's beauty is in its simplicity, and that is – as you know – incredibly difficult to preserve. |
@joshuajameshunt If you'd like to keep the old functionality it's not that hard to copy paste the old or a modified new implementation of Apart from that, you can pass IMO Mithril isn't in a particular hurry to become more like React, not sure exactly what you're referring to. |
@joshuajameshunt I'm currently trying to make Mithril less React-like, actually. I was personally a bit resistant to the design of the v1 rewrite from v0.2.x (which was a basic component-driven MVC framework), and I'm trying to gradually move Mithril back closer to that v0.2 simplicity at least at the API level, just in a way that's a bit more streamlined, a bit more ES6+ and reactivity friendly, and still relatively fast. (Our renderer is among the fastest, so even little things can cause noticeable changes.) In fact, that's why I've been trying to find ways to avoid adding full on React-like "hooks": it's a solution to a long-standing problem, but it "solved" reactive views about as well as Angular v2+ "solved" MVVM by separating things into components. |
I need more details than that. Could you file a separate bug with the target platform and a repro? I don't recall making any functional changes to that part of the router implementation. |
@isiahmeadows Roger that. BTW I really appreciate the work you and others are doing on this project. Thank you. |
I'm just a long time Mithril aficionado, an expert by no means, but wft is this m.route.Link BS?? oncreate:m.route.link was EASY and fit very well within Mithril's minimalistic paradigm. I am concerned that this sets a precedent for building components into the framework which to me seems VERY antithetical to Mithril's differentiating value, which is STAYING OUT OF THE WAY.
I'm not yelling.
Why did you guys do this? Surely there is a great reason I am not considering.
The text was updated successfully, but these errors were encountered: