Skip to content

useMediaQuery not updating on resize?ย #3958

@brian-smith-tcril

Description

@brian-smith-tcril

It seems the value of useMediaQuery isn't updating on window resize (but sometimes it does?)

Ran into this when reviewing openedx/frontend-app-admin-console#25

We just pass useMediaQuery through from react-responsive, and I didn't find any issues reported over there that match what I was experiencing.

Definitely something worth digging into a bit so we don't need to land PRs with workarounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions