hfour / h4bff

H4's backend & frontend framework :cupid::wrench: https://hfour.github.io/h4bff/
MIT License
7 stars 2 forks source link

fix(frontend): router redirects #58

Closed spion closed 5 years ago

spion commented 5 years ago

This fixes router redirects breaking the back button. Browser history is now also set to memory history in testing mode, which enables full testing of the router by driving the history instead of the route provider.

The router was modified to use computed values instead of reactions to determine the components, and use autorun only for side effects that dispatch changes to external modules (i.e. history)

spion commented 5 years ago

Yeah it appears a reference to the test renderer isn't actually necessary - I removed withTestRenderer.