I am working on android app in React Native, and I have to render some data from api on load of the screen.
I typed [] as the second argument to the UseEffect function but it doesn`t work. I tried to change UseState variable and run UseEffect hook on that way, still nothing. I only get data when I go one step back in my app and open that screen again.
New contributor
bestplayerdex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.