Prevent reset of Redux State on React Native Fast Refresh (expo cli)

Viewed 1033

I am trying to understand how to combine react native fast refresh with redux. I have cloned the following project: https://github.com/amandeepmittal/rnReduxhooks

When changing code in the view ViewNotes.js fast refresh works fine. But when changing code in the reducer notesApp.js fast refresh resets the redux state.

How can I prevent that?

Is there a tutorial for react native and redux similar to the ones for react and redux? (https://duske.me/setting-up-hot-module-replacement-with-create-react-app-and-redux/)

Gif

1 Answers
Related