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
Good catch! This is a strange one since forceUpdate() is always synchronous, so there is no real purpose to the callback. However, it should be cheap/free to add (just duplicating this line) so we're probably fine to add it.
I don't see anything in their docs about it, but maybe it's something preact is doing unnecessarily. Perhaps forceUpdate() doesn't need to be synchronous and just has to bypass shouldComponentUpdate()...
As per the React API docs
The text was updated successfully, but these errors were encountered: