Everything works almost good here, before I trying to clear browser’s cache. Keep in mind when we do it, page will not reload automatically at least in Chomium, Opera.
Ok, when I cleared cache, nothing happens on the client (as far as I can see), but publication on the server is called with old serverId. And server continue to work with old sessionId while browser doesn’t have sessionId at all because we cleaned the cache.
Of course, I could just reloading the page to get new sessionId, but not all users know about this
Tracker is hard to understand for me, so maybe I missed something here?
Then I will ask one more question: is it possible to track changes inside amplify.store("session")? Because, I failed to get the Tracker.autorun to track amplify.store("session").
I disagree. If user clears the browser’s cache Session.get("sessionId") will be out of date. So first I need to make update of Session.get("sessionId"), and then make new subscription. Am I wrong with that?
but this all worth nothing, because if I clear the cache recomputation won’t happen.
Currently I solved the problem by extending with additional typeof amplify.store("session") !== "string" ckeck before calling accounts.callLoginMethod, but maybe where is more gentle way to track amplify.store(“ReactionCore.session”) changes?