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
In the following example the current implementation outputs very useless code for useAutoMemo and useAutoCallback, and potentially un-performant code for effects:
In the following example the current implementation outputs very useless code for
useAutoMemo
anduseAutoCallback
, and potentially un-performant code for effects:The obvious reason is that
config
will always be different from the previous render. To “solve” it we need to wrap the object literal inuseAutoMemo
:The macros should at least warn about this borderline situation.
The text was updated successfully, but these errors were encountered: