4 ms·
Why is Josh creating a useCallback with an empty array? Doesn't that result in a cache that gets invalidated every render (ie does nothing)?
by darepublic 4y ago
Why is Josh creating a useCallback with an empty array? Doesn't that result in a cache that gets invalidated every render (ie does nothing)?
- ntonozzi 4y agoNo, an empty array means that the cache is never invalidated.