You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useReducedMotion hook calls MediaQueryList.addEventListener(), this causes an error in older Safari browsers- which are yet to have this function available.
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.3
What's Wrong?
The
useReducedMotion
hook calls MediaQueryList.addEventListener(), this causes an error in older Safari browsers- which are yet to have this function available.To Reproduce
Expected Behaviour
Doesn't throw an error and also honours the
(prefers-reduced-motion)
media query.Link to repo
https://codesandbox.io/s/eager-gould-hm3rtj?file=/src/App.tsx
The text was updated successfully, but these errors were encountered: