-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(symbol): revert unique symbol in #5874 #6224
Conversation
src/internal/symbol/observable.ts
Outdated
/** Symbol.observable addition */ | ||
/* Note: This will add Symbol.observable globally for all TypeScript users, | ||
however, we are no longer polyfilling Symbol.observable */ | ||
declare global { | ||
interface SymbolConstructor { | ||
readonly observable: symbol; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should revert the moving of this declaration, as its being moved solved a problem. See this PR which made the same change to the 6.x branch and the issue that it references: #6178
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cherrypicked specific PR ed34f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kwonoj if you can move what you have back into types.ts
I think this is GTG.
This is manual revert to #5874.
Core team have discussed around #5919 for a while, and at this moment pretty much agreed
count
#5784) is too much breaking especially we don't have good workaround to suggest.At least, providing as-is experience between v6 to v7 is something we'd like to have instead of making huge breaking changes. This doesn't mean we'll stay with this forever, it's just hard enough find right solution (and doesn't break whole world).
I'm making this PR to v7 not slip this accidentally when we publish official release.
Description:
Related issue (if exists):