yew/packages/yew-router-macro
Muhammad Hamza 5fec49c3c6
Clean-up and optimize router a little bit (#1869)
* fix some spaghetti and make optimization along the way

* don't make DOM API call and re-recognize route every time current route is obtained

This has the drawback of requiring the `Routable` enum to be `Clone`. Generally, this shouldn't be an issue as cloning the value *should* be cheaper than making a DOM API call and then running the route recognition process

* fmt, tests, doc

* fix

* warn, not log

* make utils tests unit tests

* fix macro test

* cleanup router on destroy, update docs

* Clone bound + docs

* apply review
2021-05-31 20:30:50 +02:00
..
2021-05-17 17:39:12 +02:00
2021-05-17 17:39:12 +02:00