blog_robinwieruch_content
blog_robinwieruch_content copied to clipboard
react-hooks-fetch-data: Improve Data Fetching
See https://www.robinwieruch.de/react-hooks-fetch-data/#comment-4403467247
- [ ] only use useEffect for the initial data fetch
- [ ] use fetch directly for every other fetching triggered by the submit button
Better implementation: https://codesandbox.io/s/4202lm924w
See also https://www.robinwieruch.de/react-hooks-fetch-data/#comment-4469649384