Open chrisbutler opened 6 years ago
I tried both a fresh app (Meteor 1.6) and an existing app (1.5.2.2), both working properly with the package on this branch.
Is there anything specific required to replicate your case?
@marxo ah, it's happening for me when the route is declared only on the client
that means there's potentially a significant behavior change here, since we don't explicitly require that all routes be declared in a shared space (https://github.com/iron-meteor/iron-router#routes-on-client-and-server)
@chrisbutler Yep, now I see it. Should controller.willBeHandledOnClient
be true
for client-side only routes? Specifically this one: https://github.com/iron-meteor/iron-router/blob/devel/lib/router_server.js#L78
@chrisbutler I'm looking at the middleware stack and as far as I can see when I move the route file to client
I always get:
_handlersForEnv: { client: false, server: false }
in the dispatch call. However, when I move it to the shared space, I get
_handlersForEnv: { client: true, server: false }
for client routes.
Could this be a bug with the middleware stack? If I move the route definition to the server
the route fails.
@marxo i reverted the devel branch, we can track this here and I can merge if/when there's a working solution