File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
exercises/03.custom-hooks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -198,10 +198,14 @@ There's a strategy to help you avoid dependency arrays talked about in
198
198
Additionally, there's a pattern you can use to help reduce the issue (with its
199
199
own set of trade-offs) which we'll explore in the React Patterns workshop.
200
200
201
+ 🦉 Better understand memoization by diving deep on caching with my talk [ Caching for Cash] ( https://www.epicweb.dev/talks/caching-for-cash ) .
202
+
201
203
🦉 A common question with this is: "Why don't we just wrap every function in
202
204
` useCallback ` ?" You can read about this in my blog post
203
205
[ When to useMemo and useCallback] ( https://kentcdodds.com/blog/usememo-and-usecallback ) .
204
206
205
207
🦉 And if the concept of a "closure" is new or confusing to you, then
206
208
[ give this a read] ( https://mdn.io/closure ) . (Closures are one of the reasons
207
209
it's important to keep dependency lists correct.)
210
+
211
+
You can’t perform that action at this time.
0 commit comments