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
Because AppState is managing its listeners in an object, the handler above will use its .toString() value as the key of listeners, which is equivalent between function calls.
One solution would be to use a Map, thus removing the implicit [[ToString]].
The text was updated successfully, but these errors were encountered:
Given the following code:
Because
AppState
is managing its listeners in an object, thehandler
above will use its.toString()
value as the key oflisteners
, which is equivalent between function calls.One solution would be to use a
Map
, thus removing the implicit[[ToString]]
.The text was updated successfully, but these errors were encountered: