Is there a way to stop the execution of a custom action when I am about to navigate to another page?

Actions & Logic

Hello, I am using a custom action that runs every 5 seconds to check whether there is internet connectivity. I am calling this custom action in every page. When I am about to leave a page, is there a way to stop this custom action from executing since I am going to call it again on the other page? How can I do that?

What have you tried so far?

Tried implementing it.

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