Closed AlainJobs closed 4 years ago
In detail, we call the asynchronous calls in the useeffect, thus there is a massive number of calls that are being made every time the useEffects are running... Also, since it's AsyncStorage and it represents vallue that we do not want to lose, it creates a memory leak. In short, AsyncStorage should not be called infinitely, only when you need it.
Issue
From time to time, we receive a too many pending callbacks in the console and it disconnects the tunnel from the app. There are two scenarios in which this warning is thrown and breaks the dev flow.
Screenshot
Why is this important
As the warning suggests, we might have a memory leak in our app so this warning should be eliminated to avoid our app to really crash when release.