Closed krizka closed 8 years ago
I don't know what you are trying to achieve here.
FlowRouter returns the correct id
.
See: https://github.com/krizka/flow-rerender/blob/master/client/flow-rerender.js#L10
This is not a FlowRouter issue. I suggest you to ask this on Meteor Forums.
Please, Arunoda. Read my description carefully. Here I created two different Templates which is layouts for the different routes. But uses the same route param called ID. And if you click first link and then second, you will see, that we get wrong ID value from FlowRouter.getParam helper. http://flowrerender.meteor.com/ Or tell me what I'm doing wrong.
I am experiencing the same issue. I have a Flowrouter.go
and then a publication that depends on params to pull the correct order.
I added a console.log
in the publication to show what is happening.
Steps: 1) Click on div that has event listener that utilized Flowrouter.go 2) Have an oncreated function that looks for Flowrouter.getParam('_id')
It runs and throws an error, then reruns with correct OrderId.
here is pub order null
Exception from sub advancedFulfillmentOrder id tpuN4DDSSAMS7FZPN Error: Match error: Expected string, got object
at check (packages/check/match.js:33:1)
at [object Object].<anonymous> (server/publications/afOrders.js:44:3)
at packages/matb33_collection-hooks/collection-hooks.js:275:1
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at [object Object]._handler (packages/matb33_collection-hooks/collection-hooks.js:274:1)
at packages/check/match.js:103:1
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at Object.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:102:1)
at maybeAuditArgumentChecks (livedata_server.js:1695:18)
at [object Object]._.extend._runHandler (livedata_server.js:1023:17)
at [object Object]._.extend._startSubscription (livedata_server.js:842:9)
at [object Object]._.extend.protocol_handlers.sub (livedata_server.js:614:12)
at livedata_server.js:548:43
Sanitized and reported to the client as: Match failed [400]
here is pub order sZTFo2sXWJnf9BNFM
Please look at https://github.com/krizka/flow-rerender/tree/master/client To reproduce the strange, please follow:
Hope this will help. For further details please ask, or look right to the code, it is pretty simple.