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
I'm trying to pinpoint the reason for some unnecessary re renders with the "What's changed" feature of React Scan, but I've got to a point where it indicates a change in "UnnamedContext" as the reason ("Reference changed but objects are the same"), but I'm pretty sure that Context (which is not really unnamed) is not changing.
First it was the Query Param Provider from use-query-params, so I tried removing that. Then it told me it was a Context of mine to expose some methods which was already under useMemo, so I removed that too. Now it's pointing to what seems to be TanStack Query's Error Reset Boundary.
I believe React Scan is wrong here, and it's probably something to react-hook-form, but I don't know how to debug it further. I'm willing to try out stuff to help understand what's happening, but unfortunately I can't share my project
The text was updated successfully, but these errors were encountered:
It would be nice to have the hook name instead of the number but it's a separate issue and possibly related to facebook/react#31398
I checked out the impl, and the solution does seem like it would take a bit of time to get right. Probably can't do this immediately but I do think this would be very useful to add in the future
I'm trying to pinpoint the reason for some unnecessary re renders with the "What's changed" feature of React Scan, but I've got to a point where it indicates a change in "UnnamedContext" as the reason ("Reference changed but objects are the same"), but I'm pretty sure that Context (which is not really unnamed) is not changing.
First it was the Query Param Provider from
use-query-params
, so I tried removing that. Then it told me it was a Context of mine to expose some methods which was already underuseMemo
, so I removed that too. Now it's pointing to what seems to be TanStack Query's Error Reset Boundary.I believe React Scan is wrong here, and it's probably something to
react-hook-form
, but I don't know how to debug it further. I'm willing to try out stuff to help understand what's happening, but unfortunately I can't share my projectThe text was updated successfully, but these errors were encountered: