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 recently noticed that getStaticValue treats the result of Symbol.for() as a static value, but not the result of Symbol(). This does seem reasonable if you think about it, but it's not obvious at first glance from the docs that that would be the case. The behavior around global symbols is specifically called out, so I think this behavior around static symbols should be too.
Symbols are always confusing!
The text was updated successfully, but these errors were encountered:
I recently noticed that
getStaticValue
treats the result ofSymbol.for()
as a static value, but not the result ofSymbol()
. This does seem reasonable if you think about it, but it's not obvious at first glance from the docs that that would be the case. The behavior around global symbols is specifically called out, so I think this behavior around static symbols should be too.Symbols are always confusing!
The text was updated successfully, but these errors were encountered: