commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Removing useEffects that have no side effect and alter the state.

Open odin-nido opened this issue 7 months ago • 1 comments

It is recommended by the React Docs to avoid unnecessarily changing the state within a useEffect. As React Docs says: "Storing information from previous renders like this can be hard to understand, but it’s better than updating the same state in an Effect."

odin-nido avatar Nov 13 '23 17:11 odin-nido

@odin-nido is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 13 '23 17:11 vercel[bot]