generated from arvinxx/npm-template
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix: fix suspense error in ssr hydration (#61)
* ⬆️ chore: update dev deps * 🐛 fix: fix suspense hydration with ssr * ✨ feat: CacheManager support delete method * ✅ test: add test for matchBrowserPrefers * 🔖 chore(release): v3.3.0-beta.1 [skip ci] # [3.3.0-beta.1](v3.2.2...v3.3.0-beta.1) (2023-06-03) ### ✨ Features * CacheManager support delete method ([595a5a6](595a5a6)) ### 🐛 Bug Fixes * fix suspense hydration with ssr ([ef61d10](ef61d10)) * 📝 docs: 补充完善 StyleProvider 的文档 * 📝 docs: 补充完善 createInstance 文档 * 📝 docs: 补充优化 useResponsive 文档 * ⬆️ chore: update dev deps * 🐛 fix: fix suspense hydration with ssr * ✨ feat: CacheManager support delete method * ✅ test: add test for matchBrowserPrefers * 🔖 chore(release): v3.3.0-beta.1 [skip ci] # [3.3.0-beta.1](v3.2.2...v3.3.0-beta.1) (2023-06-03) ### ✨ Features * CacheManager support delete method ([595a5a6](595a5a6)) ### 🐛 Bug Fixes * fix suspense hydration with ssr ([ef61d10](ef61d10)) * 🔖 chore(release): v3.3.0-beta.2 [skip ci] # [3.3.0-beta.2](v3.3.0-beta.1...v3.3.0-beta.2) (2023-06-03) ### ✨ Features * CacheManager support delete method ([b3b74e9](b3b74e9)) ### 🐛 Bug Fixes * fix suspense hydration with ssr ([9f27b16](9f27b16)) --------- Co-authored-by: semantic-release-bot <[email protected]>
- Loading branch information
1 parent
cde16f3
commit d4ce424
Showing
6 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { startTransition, TransitionFunction } from 'react'; | ||
|
||
export const safeStartTransition = (func: TransitionFunction) => { | ||
if (typeof startTransition === 'function') { | ||
startTransition(func); | ||
} else { | ||
func(); | ||
} | ||
}; |