what happens in a situation when you already bound your API call(s) into a useEffect method - in the same way as you write it, but later you need to call the previously set up API call inside yet another usEffect? It will throw an error, because useEffect can only be used in the top of the component; however I do not find the solution how to avoid issues like this.
looking forward to your insights.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
what happens in a situation when you already bound your API call(s) into a useEffect method - in the same way as you write it, but later you need to call the previously set up API call inside yet another usEffect? It will throw an error, because useEffect can only be used in the top of the component; however I do not find the solution how to avoid issues like this.
looking forward to your insights.