4 ms·
In react native, NetInfo has an api to detect network changes and I use that to stop all my setIntervals and start again with a different set of args, including
by fermuch 10y ago
In react native, NetInfo has an api to detect network changes and I use that to stop all my setIntervals and start again with a different set of args, including wait time before calling again.