This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Simplify the router to just use render functions #2506
Labels
Area: Core
For anything dealing with Mithril core itself
Type: Breaking Change
For any feature request or suggestion that could reasonably break existing code
Type: Enhancement
For any feature request or suggestion that isn't a bug fix
Milestone
Mithril version:
Browser and OS:
Project:
Is this something you're interested in implementing yourself? Very.
Description
Change the routes in the router to just be
"route": (attrs) => vnode
functions.This would also entail making
m.route.SKIP
work with the render function, so we can retain that core functionality.Why
Simplifies our router API greatly. Together with a built-in
Async
component, this covers the full API for route resolvers in a way that's just generally more flexible and pluggable for users. It's also simpler to implement.Possible Implementation
Open Questions
The text was updated successfully, but these errors were encountered: