Suresh Rs
Suresh Rs

Reputation: 98

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

Upvotes: 3

Views: 467

Answers (2)

Akhilesh Mourya
Akhilesh Mourya

Reputation: 666

React-Native Redux can only persists data till application has terminated. You need to store require data in Asynchronous storage or can pull data from your server using APIs.

Upvotes: 0

Brigand
Brigand

Reputation: 86250

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.

Upvotes: 2

Related Questions