riot-js

Open full view…

Having riot.route() difficulties

skwny
Sun, 11 Dec 2016 10:10:21 GMT

Hello. Today I included the riot router in my project, and it routed as expected for my first route. Though, when I went for a second route, the URL changed, but it was not picked up by the router. I used the same format as before, and tried several variations, all which were seen in the URL bar. I used `riot.route('routeName')` accordingly, but this did not work for the second route. Any ideas?

skwny
Sun, 11 Dec 2016 21:33:54 GMT

update: this is resolved. Honestly, I don't know how, but after restarting my project this morning, it is working. This was before changing any code..perhaps it was a browser cache issue? No idea ¯\_(ツ)_/¯