elm-book icon indicating copy to clipboard operation
elm-book copied to clipboard

bug: when hashBasedNavigation is true and url route can't be found, apps become unresponsive

Open giacomocerquone opened this issue 6 months ago • 1 comments

When hashBasedNavigation is true and a 404 link is pressed, there is an infinite update loop that makes the app go totally unresponsive. To reproduce this just convert the UI folder of this repo to use the hashBasedNavigation and insert an inexistent link wherever you want and notice the behavior.

FYI: Right now links in markdown when hashBasedNavigation is true should start with an hashtag (#/guides/whatever), but the bug can be reproduced either way of course.

Check the screencast:

https://github.com/user-attachments/assets/b4bcf1fe-4beb-4503-a6d5-8829ff16d9fe

Please notice the url which demonstrate I'm hitting an inexistent link.

Screenshot 2024-08-22 at 00 26 45

giacomocerquone avatar Aug 21 '24 22:08 giacomocerquone