Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reasoning
The introduction of #3260 as part of v2.2.0 makes SSR impossible, as a custom instance of emotion is being created and used. See #3317 for details on the issue. This PR aims to revert this feature, in order to resolve this issue within the 2.x stream of work.
Users depending on nonces for CSP support should be advised to pin their dependency at 2.2.x, to continue to leverage this feature.
In addition there is a body of work to update react-select to use emotion 10. Which reintroduces nonce support in the form of a NonceProvider component. However this is slated as a breaking change, and will be released as part of 3.x.x. See #3321 for details
Summary
This PR encapsulates the following changes: