react-component / util

Common Utils For React Component
util.vercel.app
MIT License
623 stars 178 forks source link

fix: useMobile should not warn useLayoutEffect in SSR #435

Closed MadCcc closed 1 year ago

MadCcc commented 1 year ago

close https://github.com/ant-design/ant-design/issues/41321

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated
util ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 29, 2023 at 1:52PM (UTC)
codecov[bot] commented 1 year ago

Codecov Report

Merging #435 (9ec36c0) into master (2410781) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 9ec36c0 differs from pull request most recent head a43a24c. Consider uploading reports for the commit a43a24c to get more accurate results

@@           Coverage Diff           @@
##           master     #435   +/-   ##
=======================================
  Coverage   90.83%   90.83%           
=======================================
  Files          37       37           
  Lines         840      840           
  Branches      264      251   -13     
=======================================
  Hits          763      763           
  Misses         75       75           
  Partials        2        2           
Impacted Files Coverage Δ
src/hooks/useMobile.ts 100.00% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more