Timeline for useEffect fetches data after using the data | ReactJS
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 4, 2022 at 9:51 | audit | Suggested edits | |||
| Sep 4, 2022 at 11:06 | |||||
| Aug 10, 2022 at 21:05 | vote | accept | Ali Bin Naseer | ||
| Aug 10, 2022 at 16:29 | answer | added | Robert | timeline score: 1 | |
| Aug 10, 2022 at 16:11 | comment | added | Fer Toasted |
Actually you are wrong, handleNewQuote will only be called when clicking your "New Quote" button. fetchQuotes will be called right after the component has been mounted, and thus not making possible to be called if you have not clicked the button.
|
|
| Aug 10, 2022 at 16:11 | answer | added | Irfanullah Jan | timeline score: 1 | |
| Aug 10, 2022 at 16:06 | history | asked | Ali Bin Naseer | CC BY-SA 4.0 |