pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/Ifycode-study/react-fetchdata/commit/2406d70579db020f41c49a904ce023ddeb6085da

" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> Learning: useEffect gotcha - infinite loops · Ifycode-study/react-fetchdata@2406d70 · GitHub
Skip to content

Commit 2406d70

Browse files
committed
Learning: useEffect gotcha - infinite loops
1 parent 5c9a3e6 commit 2406d70

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hooks/useFetch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ export const useFetch = (url) => {
3939
}, [url]);
4040

4141
return { data, isPending, error };
42-
}
42+
}
43+
44+
//See lesson 57: useEffect gotcha - infinite loops for how to treat objects and arrays with useEffect.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy