setParams.md
March 5, 2025 ยท View on GitHub
setParams method
FlowRouter.setParams(params);
params{Object} - Serialized route parameters,{ _id: 'str' }- Returns {true}
Change the current Route's params with the new values and re-route to the new path.
// route def: /apps/:appId
// url: /apps/this-is-my-app?show=yes&color=red
FlowRouter.setParams({appId: 'new-id'});
// Then the user will be redirected to the following path
// /apps/new-id?show=yes&color=red