react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

crash in ssr mode due to undefined window in userMobileOrientation function

Open amirzgh opened this issue 1 year ago • 3 comments

  1. Bug description there is an issue in useMobileOrientatino which cause website crash on ssr mode
  2. Steps to reproduce set mode to ssr i made this pr to fix this issue

amirzgh avatar Aug 15 '23 10:08 amirzgh

Please merge this ^

h36ahmed avatar Oct 09 '23 17:10 h36ahmed

window object doesn't exist on the server side, this may lead to this issue

Nicoolandgood avatar Oct 12 '23 08:10 Nicoolandgood

Please merge this.

edrischhawniwala avatar Oct 25 '23 10:10 edrischhawniwala