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

fix: useSyncExternalStore backward compatibility #296

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

MateoKruk
Copy link
Contributor

This PR implements retro-compatibility for useSyncExternalStore. Hopefully with this PR and #165 we can use cmdk without issue in other React versions.

Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cmdk-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 6:18pm

@MateoKruk
Copy link
Contributor Author

thoughts @pacocoursey?

@MateoKruk
Copy link
Contributor Author

friendly ping @pacocoursey

@DipankarNath
Copy link

@phsantiago pls, merge this pr

@MateoKruk
Copy link
Contributor Author

this is more for @pacocoursey

@pacocoursey pacocoursey merged commit 0bd1fe2 into pacocoursey:main Oct 30, 2024
2 checks passed
@tadeumaia
Copy link

tadeumaia commented Oct 30, 2024

I think this might have broken some usages of cmdk on next15/react19.
Maybe the use-sync-external-store should be at 1.4+ for react 19?

If I build from source without this pr everything works fine.

This is what I am getting.
CleanShot 2024-10-30 at 17 45 17@2x

@parweb
Copy link

parweb commented Oct 31, 2024

same for me

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.

6 participants