Skip to content

timeZone causes bad performance due to slow re-renders #2845

@mciudoiu

Description

@mciudoiu

Using timeZone significantly affects performance slowing down re-renders by up to 15x.
Having some disabled dates and modifiers additionally increases this time.

To reproduce

CodeSandbox: https://codesandbox.io/p/sandbox/daypicker-bug-report-forked-8lrc7t

Actual Behavior

Re-renders are very slow.

Expected Behavior

Be as fast as when not using timeZone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions