T
T
TheRevan2020-11-10 15:39:06
React
TheRevan, 2020-11-10 15:39:06

When to write server requests with react-navigation?

I use redux + react-native. In which method to call the action for requesting data from the server? if done in componentDidMount - then the next time you go to the same screen, the request to the server does not occur, while the data could change during this time

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2020-11-10
@davidnum95

You can make a request when you go to the docs screen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question