Skip to content

Scheduler Render.prototype.refreshDataManager could be invoked before this.parent.activeView is set #97

@cxspxr

Description

@cxspxr

In my project during react scheduler rendering there could be a change in a store from what I feed my scheduler. And by that point on some occasions this.parent.activeView is undefined, thus throwing startDate of undefined. I will open a PR with a if-return, but I guess it's better for you guys to check why activeView could be not set. I can't share my react code here, but I am setting literally currentView="Week" for the scheduler component + isSelected option on ViewDirective and it works well but sometimes the scheduler crashes, when there is refreshDataManager invocation before this.parent.activeView is set on scheduler component first time rendering.

let start: Date = this.parent.activeView.startDate();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions