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

DEVPROD-11145: Pin @leafygreen-ui/hooks to v8.1.3 for ComboBox #428

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Oct 4, 2024

DEVPROD-11145

Description

The ComboBox is broken due to weird interactions with @leafygreen-ui/hooks.

You can use this CodeSandbox to verify that it doesn't work for any version after 8.1.3.

@minnakt minnakt added the dependencies Pull requests that update a dependency file label Oct 4, 2024
@minnakt minnakt marked this pull request as ready for review October 4, 2024 16:20
@minnakt minnakt requested a review from a team as a code owner October 4, 2024 16:20
package.json Outdated
@@ -20,7 +20,8 @@
"@testing-library/dom": "10.1.0",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.0",
"jackspeak": "2.1.1"
"jackspeak": "2.1.1",
"@leafygreen-ui/hooks": "8.1.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try only forcing this version for combobox? I believe this would be the syntax:

"@leafygreen-ui/combobox/@leafygreen-ui/hooks"

It would be preferable to not apply this to all LG components I think if it works

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, I could only get this working by moving the content to Spruce package.json, but I assume that's fine

package.json Outdated
@@ -20,7 +20,8 @@
"@testing-library/dom": "10.1.0",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.0",
"jackspeak": "2.1.1"
"jackspeak": "2.1.1",
"@leafygreen-ui/hooks": "8.1.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if we get LG to fix this on their end instead of pinning the dependency since we would likely forget about this or run into unpredictable behavior if LG updates this in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just ticket this and track it on our side. It's been broken since August 27th, I think we should patch it

@minnakt minnakt changed the title DEVPROD-11145: Pin @leafygreen-ui/hooks to v8.1.3 in resolutions DEVPROD-11145: Pin @leafygreen-ui/hooks to v8.1.3 for ComboBox Oct 4, 2024
@khelif96
Copy link
Contributor

khelif96 commented Oct 9, 2024

Commenting here just in case you missed the thread while you are out. The fix for this should be released as of today or tomorrow. So we should be able to just update Combobox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants