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

Downgrade Radix packages for type compat #5653

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Downgrade Radix packages for type compat #5653

merged 2 commits into from
Oct 8, 2024

Conversation

estrattonbailey
Copy link
Member

Zeego depends on Radix even though we don't use Zeego's Radix abstraction. I think something in this Radix update changed types, and this upgraded version of react-dropdown-menu was causing unusual type errors e.g. prop 'style' does not exist on ...<props>, even though it continued working.

Looking through the git history, I don't think we really need these updated versions, or to update resolutions to point to those latest versions.

After downgrading, there was still an error with DropdownMenuContent where it thought optional props from Radix's Popover abstraction were required. But this was appearing on the native component, where Radix is not used.

So types got a little funky here somewhere, but the only override needed is for the native component, where it shouldn't matter 👍

@arcalinea arcalinea temporarily deployed to dropdown-types - social-app PR #5653 October 8, 2024 19:38 — with Render Destroyed
@arcalinea arcalinea temporarily deployed to dropdown-types - social-app PR #5653 October 8, 2024 19:43 — with Render Destroyed
Copy link

github-actions bot commented Oct 8, 2024

Old size New size Diff
7.93 MB 7.94 MB 14.09 KB (0.17%)

@haileyok haileyok merged commit 8fe2427 into main Oct 8, 2024
6 checks passed
@haileyok haileyok deleted the dropdown-types branch October 8, 2024 20:04
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.

3 participants