We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Link to live example: https://github.com/o-alexandrov/pigment-css-hmr-bug
Steps:
npm run dev
src/css.ts
HMR doesn't work in the described scenario
HMR works
No response
npx @mui/envinfo
Used both Safari and Chrome
System: OS: macOS 14.4 Binaries: Node: 21.7.1 - /opt/homebrew/bin/node npm: 10.5.0 - /opt/homebrew/bin/npm pnpm: Not Found Browsers: Chrome: 123.0.6312.58 Edge: 112.0.1722.39 Safari: 17.4 npmPackages: @pigment-css/react: 0.0.3 @pigment-css/vite-plugin: 0.0.3 @emotion/react: 11.11.4 @emotion/styled: 11.11.0 @mui/private-theming: 5.15.14 @mui/styled-engine: 5.15.14 @mui/system: 5.15.14 @mui/types: 7.2.14 @mui/utils: 5.15.14 @types/react: 18.2.65 => 18.2.65 react: ^18.2.0 => 18.2.0 react-dom: ^18.2.0 => 18.2.0 typescript: 5.4.2 => 5.4.2
Search keywords: pigment hmr
The text was updated successfully, but these errors were encountered:
[pigment-css][vite-plugin] Use constant filename for pigment styles
6fc1bc0
and just send the reload event to refresh the contents on client side. Fixes mui#41628
ca5e3ad
Thank you, it's fixed in the unpublished changes. I installed the packages, referencing them locally and manually confirmed HMR is working
Sorry, something went wrong.
brijeshb42
Successfully merging a pull request may close this issue.
Steps to reproduce
Link to live example: https://github.com/o-alexandrov/pigment-css-hmr-bug
Steps:
npm run dev
src/css.ts
(ex. background)Screen.Recording.2024-03-24.at.1.51.02.AM.mov
Current behavior
HMR doesn't work in the described scenario
Expected behavior
HMR works
Context
No response
Your environment
npx @mui/envinfo
Used both Safari and Chrome
Search keywords: pigment hmr
The text was updated successfully, but these errors were encountered: