zambezi / caballo-vivo

Glue code for pure RxJS applications to connect with React-Router, and other operators
2 stars 7 forks source link

Unblock history on unsubscribe #44

Closed gabrielmontagne closed 4 years ago

gabrielmontagne commented 4 years ago

Once one has been unsubscribed from the location handler that blocks history to manage the paths, history should be again unblocked. This can be handled automatically RXJS' observable creation factories.

cristiano-belloni commented 4 years ago

This is especially useful because without, if the store completes (eg on an error), the history is still blocked and anchors on the page are not followed when clicked.