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
my question is, in react 19, the usage of useCallback is deprecated, means react automatically memoize the functions in my functional component? or only memoize the function that hasn't any dependencies. please more clarification about this.
if it is not required, and my app already i used useCallback, and memo... i have any side effect if i continue used it or i need to removed from my app if i want to switch from 18 to 19
thanks.
The text was updated successfully, but these errors were encountered:
Hi @HAWKZ4 , thanks for your answere
if you use React 19 only, you are right but using with it new react compiler (npm install -D eslint-plugin-react-compiler), no need for useCallback memo ....
this what react 19 documentation told (https://react.dev/learn/react-compiler)
my question is, in react 19, the usage of useCallback is deprecated, means react automatically memoize the functions in my functional component? or only memoize the function that hasn't any dependencies. please more clarification about this.
if it is not required, and my app already i used useCallback, and memo... i have any side effect if i continue used it or i need to removed from my app if i want to switch from 18 to 19
thanks.
The text was updated successfully, but these errors were encountered: