I am using TLS in a template and it works fine. My client only subscribes and receives data, once the template is loaded/created. It is based on this article: https://www.discovermeteor.com/blog/template-level-subscriptions/
Now when routing to another template, my template-level-loaded documents are removed from minimongo and are reloaded, once I reload the template. I think this is the intended behavior for TLS but I want to do the following:
- I still want to subscribe only on template level
- I want to keep / cache the docs in minimongo and prevent reloading them.
I found this package (https://github.com/convexset/meteor-template-level-subs-cache) but I am not sure, wether this is the way of choice or if TLS as in the article above is not the right approach for that.