react-component / motion

⛷ CSS Animation for React
https://motion-seven.vercel.app
MIT License
150 stars 42 forks source link

fix: add useIsomorphicLayoutEffect back #29

Closed zombieJ closed 2 years ago

zombieJ commented 2 years ago

发现在测试环境下 useEffect 时序比 Promise 更慢,为了保持一致性还是应该使用 useLayoutEffect 即便它很恼人。

vercel[bot] commented 2 years ago

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

Name Status Preview Updated
motion ✅ Ready (Inspect) Visit Preview Apr 19, 2022 at 10:06AM (UTC)
codecov[bot] commented 2 years ago

Codecov Report

Merging #29 (bebb93a) into master (24efc07) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #29   +/-   ##
=======================================
  Coverage   98.30%   98.31%           
=======================================
  Files          10       11    +1     
  Lines         355      356    +1     
  Branches       94       95    +1     
=======================================
+ Hits          349      350    +1     
  Misses          6        6           
Impacted Files Coverage Δ
src/hooks/useIsomorphicLayoutEffect.ts 100.00% <100.00%> (ø)
src/hooks/useStatus.ts 100.00% <100.00%> (ø)
src/hooks/useStepQueue.ts 100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more