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
As a developer I expect getData function to be immutable, so I can use it as a dependency inside useEffect. However it seems like getData function is re-created on each render.
As a developer I expect
getData
function to be immutable, so I can use it as a dependency insideuseEffect
. However it seems likegetData
function is re-created on each render.Simple example
The text was updated successfully, but these errors were encountered: