-
Notifications
You must be signed in to change notification settings - Fork 1.2k
revert [Banner] [Card] [Modal] convert banner legacy context API to use create context #786 #884
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
Conversation
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.
Not tested but looks sensible.
Might be worth adding a comment above the export to say it's just for backwards compat purposes
f1b94a9
to
8b9c7e4
Compare
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.
it passed build-consumer
8b9c7e4
to
b4bc27b
Compare
b4bc27b
to
c179989
Compare
c179989
to
bfb3be5
Compare
bfb3be5
to
32d0c4f
Compare
32d0c4f
to
9121b5d
Compare
This reverts commit 26d4af3.
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.
Approved but sad that the whole thing can't be updated
Turns out there is a fork of Card in web that relied on those contextTypes being exported, and updates to use new React context should really be considered a breaking change. This reverts all of #786 to avoid breaking changes.
See https://buildkite.com/shopify/web-ci-builder/builds/39489 and https://github.com/Shopify/web/pull/9824 for more context.