#Trouble with quizzical project

4 messages · Page 1 of 1 (latest)

alpine thistle
#

This is my fetching the questions from the API, after the button has been clicked, but for some reasons while console logging to check my response, I'm always getting 2 responses everytime I click the button to fetch.

Here is the code repo :
https://github.com/Manuel-dev01/Quizzical.git

frail grotto
#

the repo is not visible to me. Is it public?

fossil musk
#

Getting two API fetch responses is likely due to the React Strict Mode, which enables some extra dev-only checks and runs all effects twice. There is nothing to worry about as in production your data will be fetched once on component mount. You can read more about it here: https://react.dev/reference/react/StrictMode

The library for web and native user interfaces

alpine thistle