veliovgroup / flow-router

🚦 Carefully extended flow-router for Meteor
https://packosphere.com/ostrio/flow-router-extra
BSD 3-Clause "New" or "Revised" License
201 stars 30 forks source link

Is it possible to update params / queryParams without re-rendering? #70

Closed jankapunkt closed 4 years ago

jankapunkt commented 4 years ago

I have the issue, that I want to update my params or query params without rendering again, which causes all content to be redrawn and thus disappear for a slight moment. Others might think this is a glitch or something.

Is this intended behavior (reactivity)? Can I prevent it?

Note: I am not sure how far this is related to #66 because I have not a real "error" and I think it is not.

dr-dimitru commented 4 years ago

@jankapunkt need route definition example. From your description, I'd say it caused by waitOn, data or other hook as it must re-run in order to pull fresh data (e.g. URL/route is changed, all hooks must re-run)

dr-dimitru commented 4 years ago

@jankapunkt see this updated docs, by default if you aren't rendering other templates in waitOn/whileWaiting and other router's hooks, and using layout with {{> yield}} template won't be re-rendered upon params/URI change.

jankapunkt commented 4 years ago

Thank you, works great! I close the issue as it's resolved.