-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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: hydration mismatch on Mac #2913
Conversation
Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2913 +/- ##
========================================
Coverage 93.27% 93.27%
========================================
Files 382 382
Lines 23878 23878
Branches 2668 1870 -798
========================================
Hits 22273 22273
Misses 1605 1605
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution!
❤️ Great PR @phuctm97 ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.0.8](v1.0.7...v1.0.8) <sup>Released on **2024-06-18**</sup> #### 🐛 Bug Fixes - **misc**: Fix hydration mismatch on macOS. #### 💄 Styles - **misc**: Update brand and improve docs. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix hydration mismatch on macOS, closes [#2913](#2913) ([cd9a143](cd9a143)) #### Styles * **misc**: Update brand and improve docs, closes [#2917](#2917) ([2b54cae](2b54cae)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.0.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.43.3](v1.43.2...v1.43.3) <sup>Released on **2024-06-18**</sup> #### 🐛 Bug Fixes - **misc**: Fix hydration mismatch on macOS. #### 💄 Styles - **misc**: Update brand and improve docs. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix hydration mismatch on macOS, closes [lobehub#2913](https://github.com/bentwnghk/lobe-chat/issues/2913) ([cd9a143](cd9a143)) #### Styles * **misc**: Update brand and improve docs, closes [lobehub#2917](https://github.com/bentwnghk/lobe-chat/issues/2917) ([2b54cae](2b54cae)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
### [Version 1.0.8](lobehub/lobe-chat@v1.0.7...v1.0.8) <sup>Released on **2024-06-18**</sup> #### 🐛 Bug Fixes - **misc**: Fix hydration mismatch on macOS. #### 💄 Styles - **misc**: Update brand and improve docs. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix hydration mismatch on macOS, closes [lobehub#2913](lobehub#2913) ([cd9a143](lobehub@cd9a143)) #### Styles * **misc**: Update brand and improve docs, closes [lobehub#2917](lobehub#2917) ([2b54cae](lobehub@2b54cae)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
### [Version 1.0.8](lobehub/lobe-chat@v1.0.7...v1.0.8) <sup>Released on **2024-06-18**</sup> #### 🐛 Bug Fixes - **misc**: Fix hydration mismatch on macOS. #### 💄 Styles - **misc**: Update brand and improve docs. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix hydration mismatch on macOS, closes [lobehub#2913](lobehub#2913) ([cd9a143](lobehub@cd9a143)) #### Styles * **misc**: Update brand and improve docs, closes [lobehub#2917](lobehub#2917) ([2b54cae](lobehub@2b54cae)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
On MacOS, there will be a hydration issue on the hotkey indicators because isMacOS() function returns different value on server & client. This delays rendering them after hydration with proper loading during SSR.