You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The refresh function refreshes when the fetchFunc does. But in fact, it doesn't make sense per clean coding principle to change the fetch function at any point as all dependencies can be passed and will be passed to the function.
So essentially, right now the downside is: by just passing a function, the refresh function is never memoized as it always refreshes.
Rethink this behaviour.
The text was updated successfully, but these errors were encountered:
The
refresh
function refreshes when thefetchFunc
does. But in fact, it doesn't make sense per clean coding principle to change the fetch function at any point as all dependencies can be passed and will be passed to the function.So essentially, right now the downside is: by just passing a function, the refresh function is never memoized as it always refreshes.
Rethink this behaviour.
The text was updated successfully, but these errors were encountered: