I have a react native app the was working fine and now suddenly without changing anything , it started loading plain json files very slow. also loading images is taking 10-15 seconds for a 100 kb image. i googled but nothing helping
any idea?
4 Answers
Answers 1
Perhaps it may be the problem with your network, you can try connecting your devices through some other hotspot. Furthermore, you can try 'Hot Reloading' feature, it is extremely fast. Hope, this helps.
Answers 2
I have faced this type of problem Just clear cache and restart app and emulator. I will work again faster.
Answers 3
I have faced this before with the app in debug mode. Try building your app in Release configuration and trying it then. If it's just an issue in debug mode, then its simply an inconvenience.
Answers 4
Most of the time, this issue arises because of running the app in Debug mode.
Things to take care of:
If you are running on a slow network connection.
If you are using stale/old cache again and again.
If you are loading the latest version of your code.
Some of the ways you can approach this problem:
Delete stale/old cache from your running configuration.
Switch to a network with nice connectivity.
Try to use Hot Module Reloading (HMR) or the hot reloading feature created for the react ecosystem.
I hope this might help and solves your problem. Cheers!
0 comments:
Post a Comment