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
Per Seattle resolution, we should add a .update() method to styleMap, which takes a key and a callback, passing the value to the callback and setting the key to the return value. This is a convenience API to make it easier to mutate things without having to repeat yourself.
(There was discussion about this making things more performant, as you only need one cache lookup, but Daniel Ehrenburg pointed out that you can mutate the map in the callback, so you can't rely on the cache lookup remaining valid.)
The text was updated successfully, but these errors were encountered:
Per Seattle resolution, we should add a .update() method to styleMap, which takes a key and a callback, passing the value to the callback and setting the key to the return value. This is a convenience API to make it easier to mutate things without having to repeat yourself.
(There was discussion about this making things more performant, as you only need one cache lookup, but Daniel Ehrenburg pointed out that you can mutate the map in the callback, so you can't rely on the cache lookup remaining valid.)
The text was updated successfully, but these errors were encountered: