Skip to content
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

Pin react-collapsed to minor version #350

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Jan 4, 2023

This PR pins react-collapsed to the latest minor version (v3.6.0) that supports React 17. In v3.7.0 and v3.8.0, react-collapsed fixed a bug (Slack thread, GH issue) that occurs when using it with React 18 by introducing a breaking change where they dropped compatibility with React 16 and 17. v3.7.0+ would break a search experience using collapsible facets with React <18. Since they are not able to support both React 17 and 18 together, it seems preferable to pin to a version that can be used with both, but is a little buggy with React 18, rather than fully functional with React 18, but breaks other React experiences.

J=SLAP-2521
TEST=manual

See that collapsible facets works as expected on a test-site running on React 17 and that the site running on React 18 still has most functionality, except for the bug described above.

@coveralls
Copy link

Coverage Status

Coverage: 85.86%. Remained the same when pulling b991cb4 on dev/react-collapsed into 3aeb9be on develop.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

Current unit coverage is 89.06361686919227%
Current visual coverage is 77.87787787787788%
Current combined coverage is 89.70693352394568%

@nmanu1 nmanu1 marked this pull request as ready for review January 4, 2023 20:07
@nmanu1 nmanu1 requested a review from a team as a code owner January 4, 2023 20:07
@oshi97
Copy link
Contributor

oshi97 commented Jan 4, 2023

It's expected for the react 18 tests to fail right?

@nmanu1
Copy link
Contributor Author

nmanu1 commented Jan 4, 2023

It's expected for the react 18 tests to fail right?

Yes, the react 18 tests have been failing for a while now (they've only been explicitly visible since we updated the script to actually fail properly). It's unrelated to the change in this PR, but any component/test that uses renderToString (SSR tests) or ReactDOM.render (MapboxMap) will fail in the react 18 tests

@nmanu1 nmanu1 merged commit cb546c5 into develop Jan 4, 2023
@nmanu1 nmanu1 deleted the dev/react-collapsed branch January 4, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants