-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is README.md correct for defining handler lookup function? #264
Comments
Small amount of debugging later and it seems to be failing now at:
where |
I just stumbled upon this lib and tried to give it a shot. For me it works with After a quick search I found the hint here: https://github.com/tildeio/router.js/blob/master/tests/query_params_test.ts#L65 |
Yes, you are correct. We recently did some terminology cleanup, and apparently missed some in the README.md. Sorry about that. Would love a PR fixing if someone has the time... |
Also took me a while: I had to implement Found the hint here: https://github.com/tildeio/router.js/blob/master/tests/test_helpers.ts#L188 |
Thanks @fsauter for the pointers. I will try implementing the triggerEvent to move forward a bit. |
Come on guys, why having a README if it's misleading? I'm ditching this lib, can't rely on something that is half baked. |
The README.md file says:
This doesn't seem to do anything, but having dug into the library it seems to error on
this.router.getRoute()
not being defined. Should the README.md say thatrouter.getRoute
needs to be set instead?With that said, I did change my code to set getRoute, which did stop the error, but my handler is still not being called. Is there a working example anywhere that I could follow?
The text was updated successfully, but these errors were encountered: