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 have some code that accesses event.target asynchronously, and to my surprise React is mutating the event object, removing useful properties synchronously after emitting the event. This seems like broken behavior to me:
React doesn't mutate the native object, just our own synthetic event. As mentioned we do poll these objects to mitigate GC and you can hold on to one by calling persist.
I have some code that accesses event.target asynchronously, and to my surprise React is mutating the event object, removing useful properties synchronously after emitting the event. This seems like broken behavior to me:
I would expect the sync and async targets to be the same, but if you run the above, async target will be
null
.The text was updated successfully, but these errors were encountered: