Closed rnarayan closed 8 years ago
I'm not sure what exactly you asked. But for
destroy the postlist data
I always use the SubsManager to subscribe all publish. It works great for me.
You dont need useDeps nor composeAll. If you return function from composer, it will be executed when component is umounting, so you can do cleanup there. That method call data is i internal variable, so it will get destroyed. You can call action to fetch it to for example ReactiveDict as in blog example is error, but you can use array there to store results. So it will be available even if you umount.
@rnarayan Let me answer you questions.
Thanks @xcv58 , @ShockiTV and @arunoda for your replies. @arunoda, I will use that cache package that you mentioned. Thanks for the recommendation.
Arunoda, First of all, tons of thanks for mantrajs. Its superb.
I am starting a new project and I have decided to use Mantra for this. I don't care for reactivity in all situations. For a non-reactive solution, would you recommend the code below? It has worked in my tests.
My Questions: