Hi, it seems like the current implementation of WeekView in React Scheduler has the following constraint:
Am I correct? If so, how do I override such behaviour, as I would like to allow users to dynamically update startDayHour and endDayHour that fits their needs (e.g some people might not have plans from 12am-6am, but some might).
My current implementation is as follows:
<WeekView
startDayHour={this.props.startDayHour}
/>This is probably due to the current implementation of WeekView as a Pure Component, how can I get around this?
Please correct me if I'm wrong. Thanks in advance!
@AngelineLim,
I reproduced this behavior. We will try to fix this.
Hey @MaximKudriavtsev, lovely! Thank you!
Any workarounds for my use case while we wait for the bug to be fixed?
@AngelineLim
Unfortunately, we don't have any workaround. We are working on the fix and will update this topic if we have any results.
Workaround: Use a key for the parameter of interest - either or both - startDayHour, endDayHour - but put it on the parent Scheduler <Scheduler key={startDayHour+endDayHour}>
@AngelineLim, @Log-of-e,
We have released the 1.11.1 version of DevExtreme Reactive Scheduler with this fix.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.