Skip to content

Conversation

yash49
Copy link
Contributor

@yash49 yash49 commented Aug 18, 2024

fixes #41190

@yash49 yash49 marked this pull request as draft August 18, 2024 12:31
@mui-bot
Copy link

mui-bot commented Aug 18, 2024

Netlify deploy preview

https://deploy-preview-43360--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against b3840af

@yash49 yash49 changed the title [base-ui][material-ui] Fix "useId" & "useSyncExternalStore" import error after updating esbuild [base-ui][material-ui] Make "useId" & "useSyncExternalStore" imports statically unanalysable Aug 18, 2024
@yash49 yash49 changed the title [base-ui][material-ui] Make "useId" & "useSyncExternalStore" imports statically unanalysable [base-ui][mui-system] Make "useId" & "useSyncExternalStore" imports statically unanalysable Aug 18, 2024
@yash49 yash49 marked this pull request as ready for review August 18, 2024 12:50
@oliviertassinari oliviertassinari added the type: bug It doesn't behave as expected. label Aug 18, 2024
@oliviertassinari oliviertassinari changed the title [base-ui][mui-system] Make "useId" & "useSyncExternalStore" imports statically unanalysable [base-ui][mui-system] Fix "useId" & "useSyncExternalStore" imports to not be statically analysable Aug 18, 2024
@zannager zannager requested a review from atomiks August 19, 2024 14:31
@yash49
Copy link
Contributor Author

yash49 commented Aug 26, 2024

hi @atomiks, can you please review this tiny pr?

Copy link
Contributor

@atomiks atomiks left a comment

Choose a reason for hiding this comment

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

I also switched from toString() to the {...React} technique in https://github.com/floating-ui/floating-ui and it has worked without issue.

@yash49
Copy link
Contributor Author

yash49 commented Aug 27, 2024

Thank you @atomiks for reviewing the PR.

@oliviertassinari / @zannager can we merge this PR ?

@oliviertassinari oliviertassinari force-pushed the bug/make-imports-statically-unanalysable branch from 1a38207 to f28f154 Compare September 14, 2024 20:31
@oliviertassinari oliviertassinari changed the title [base-ui][mui-system] Fix "useId" & "useSyncExternalStore" imports to not be statically analysable [utils] Fix "useId" & "useSyncExternalStore" imports to not be statically analysable Sep 14, 2024
@oliviertassinari oliviertassinari added the package: utils Specific to the utils package. label Sep 14, 2024
@oliviertassinari oliviertassinari enabled auto-merge (squash) September 14, 2024 20:37
@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 14, 2024

I did some clean-up. I think it's ready to be merged?


Looking at the useId inspired me to open mui/base-ui#616.

@siriwatknp siriwatknp merged commit 1275f37 into mui:master Sep 17, 2024
19 checks passed
@oliviertassinari oliviertassinari changed the title [utils] Fix "useId" & "useSyncExternalStore" imports to not be statically analysable [utils] Fix "useId" & "useSyncExternalStore" imports to not be statically analyzable Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: utils Specific to the utils package. type: bug It doesn't behave as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[base-ui] "useId" import error after updating esbuild
6 participants