Skip to content

crash in ssr mode due to undefined window in userMobileOrientation function #220

Open
@amirzgh

Description

@amirzgh
  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

Activity

h36ahmed

h36ahmed commented on Oct 9, 2023

@h36ahmed

Please merge this ^

Nicoolandgood

Nicoolandgood commented on Oct 12, 2023

@Nicoolandgood

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

edrischhawniwala

edrischhawniwala commented on Oct 25, 2023

@edrischhawniwala

Please merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      crash in ssr mode due to undefined window in userMobileOrientation function · Issue #220 · duskload/react-device-detect