You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser and OS: Firefox Quantum Developer Edition, Kali Linux
Project: Internal-only corporate tooling
Is this something you're interested in implementing yourself? Already did but too lazy to make patch upstream. Really only going to the trouble of sharing in case it inspires someone else, which would also imply there is a use for it beyond my case.
Description
Add a bypass:boolean attribute to the m.route.Link component.
Why
Because, before I upgraded Mithril 1.x => 2.x, in many cases I was conditionally binding:
Practically, I would do this when href.startsWith('http'), but in other cases as well,
such as on the page header logo, which I want to cause a full-page refresh if clicked.
Type: EnhancementFor any feature request or suggestion that isn't a bug fixArea: CoreFor anything dealing with Mithril core itself
1 participant
Converted from issue
This discussion was converted from issue #2525 on September 02, 2024 19:52.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Mithril version: 2.x
Browser and OS: Firefox Quantum Developer Edition, Kali Linux
Project: Internal-only corporate tooling
Is this something you're interested in implementing yourself? Already did but too lazy to make patch upstream. Really only going to the trouble of sharing in case it inspires someone else, which would also imply there is a use for it beyond my case.
Description
Add a
bypass:boolean
attribute to them.route.Link
component.Why
Because, before I upgraded Mithril 1.x => 2.x, in many cases I was conditionally binding:
now becomes:
Possible Implementation
Open Questions
Practically, I would do this when
href.startsWith('http')
, but in other cases as well,such as on the page header logo, which I want to cause a full-page refresh if clicked.
Beta Was this translation helpful? Give feedback.
All reactions