Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we need to persist redux store data while creating mobile apps with react native?

While creating apps with reactJS we need to persist the redux state data, because the store gets reinitialized when the browser is refreshed. Is this scenario applicable while creating mobile apps? I mean the mobile apps cannot be refreshed right?

So, while creating mobile apps with react native we need not have to bother about persisting the data fearing that the app will be refreshed? Please correct me if I'am wrong

like image 615
Suresh Rs Avatar asked Dec 11 '25 02:12

Suresh Rs


1 Answers

Just like on desktop applications, your application can be closed, the device can restart, etc, and everything not persisted goes away.

You should store anything you don't want to lose in AsyncStorage or similar.

like image 191
Brigand Avatar answered Dec 13 '25 22:12

Brigand