Skip to content

Uncaught RangeError: Invalid array length at Array.push #192

@edgar-g-q

Description

@edgar-g-q

The error happens randomly when switching viewMode through a button set I defined (I defined a state with the viewMode)
The error is located at seedDates function.
For some reason, at some scenario, viewMode variable is set to null, and this function enters an infinite loop that crashes when the array of dates takes the maximum number of elements allowed by javascript.

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