androidreact-nativereact-navigationreact-navigation-v6

On Android, react navigation won't navigate away if there's an ongoing request. How to fix this?


As titled.

Weird thing is that this doesn't happen on both Pixel simulator. Only on my OPPO phone.

If there's an ongoing request in the background, I can only scroll, but hitting back, opening modal, nothing. And it will eventually trigger once the request is completed.

I've tried to listen to 'beforeRemove' event, but it's also just triggered when the request is done. I mean, if can use this, I just cancel the axios request and call it fixed.


Solution

  • Seems like the problem fix itself on React Native 0.74.1