I query collection and show documents in Swipeable stack. Whichever document is being viewed from collection, I want to update flag of that document as soon as that document is loaded. Is there a way to achieve it?
I see we can define actions, but all actions are based on some user interaction like, "on tap" etc. What I need is, to update flag automatically as soon as document from collection is shown.