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
I don't understand why the first case can't just be case Some(nd) => nd, but if you leave it as that, you will see bad things happen when you switch between the path #/counter and any other path starting with #/ (i.e., some html wills stay there and not be replaced, while new html continues to be added to the view).
The text was updated successfully, but these errors were encountered:
I implemented a simple router, along with some helper functions, here. In the working example, we have the helper class:
I don't understand why the first
case
can't just becase Some(nd) => nd
, but if you leave it as that, you will see bad things happen when you switch between the path#/counter
and any other path starting with#/
(i.e., some html wills stay there and not be replaced, while new html continues to be added to the view).The text was updated successfully, but these errors were encountered: