Answer the question
In order to leave comments, you need to log in
How and where to load all the necessary data in a mobile application written in React-native?
How to download all the necessary data before authorization and after authorization?
now I load the data in each screen (componentDidmount) and save it in redux store or asyncstorage
Answer the question
In order to leave comments, you need to log in
The data necessary for initialization can be loaded in an async action:
const store = configureStore();
store.dispatch(init());
const App: React.FC = () => (
<Provider store={store}>
<Navigation />
</Provider>
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question