This repository has been archived by the owner on Jul 19, 2020. It is now read-only.
Only allow route: T: Switch in Props to Anchor and Button components. #207
Labels
breaking change
This change will result in a broken build or differing behavior in end-user crates.
enhancement
New feature or request
high priority
Issues with this tag will be worked on before others
Description
To make it impossible to represent a non-valid internal route, using
route: T
instead oflink: String, state: T
would be a significant improvement to the props on theRouterAnchor
andRouterButton
.This obviously would be a breaking change, but ultimately makes it easier to construct valid routes.
The text was updated successfully, but these errors were encountered: