Skip to content

Clear cache when toggling device emulation mode #2

Closed
@nhardy

Description

@nhardy

Is your feature request related to a problem? Please describe.

Scroll bar width can change when toggling device emulation mode. (e.g. 17px to 0px, vice-versa)

Describe the solution you'd like

Listen to window resize events and automatically clear the cache, or provide a more clear interface to clear the cache (__cache feels too much like an internal that consumers shouldn't touch).

Describe alternatives you've considered

Consumers of the package requiring this functionality can listen to window resize events and manually delete scrollbarWidth.__cache;

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