How to update document automatically when it's fetched

Actions & Logic
Resolved

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.

What have you tried so far?

Checked all possible actions we can define but couldn't find anything as such for my case.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
3 replies