-
Notifications
You must be signed in to change notification settings - Fork 116
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
Export Router. #24
Comments
Fix Issue #24: - Add a configuration option to disable Iron Router as the client-side router - Add restivus.coffee on the client (in addition to the server) so that Restivus can be configured everywhere - Update API configuration options in README - Update change log
I just published an updated version (0.6.4) that adds a new configuration option to resolve this issue. So now you just need to set the Restivus.configure({
useClientRouter: false
// Any other config options you'd like to set
}); And that should take care of it for you. Since this now requires Restivus to configure things on both the client and the server, you have to be sure to call I've updated the docs to reflect these changes. Let me know if you have any other issues with the latest update. Thanks for putting in this request! |
Thanks for quick turn around. Looks like Restivus isn't exposed on the client, getting |
Hmmm. I tested locally and it worked for me. Let me check it using the published package. In the meantime, I'll reopen the issue. Sorry about that. That's what I get for being too lazy to write an automated test for it. |
No worries, happens to the best of us. Meanwhile, adding iron:router as a direct dependency lets me use |
This is extremely confusing. When I test locally, it works. If you look in I was hoping to avoid you having to create the direct dependency on |
You can create a |
Thanks @dandv! That's just what I needed to test this. That should help me push this along. |
Def. weird... |
#38 should fix this, I bet! |
This is resolved by #46 (which removes Iron Router), and will be included in the next major update, v0.7.0. If you'd like early access, you can clone the latest from the 0.7.0 branch, and use it as a local package. Of course, that branch is a work in progress, so there could be some unexpected behavior. Thanks again for reporting this issue! |
I need to disable clientside router which can be done via
Router.options.autoStart = false;
, but need the Router exposed.The text was updated successfully, but these errors were encountered: