|
<ButtonComponent id='add' title='Add' cssClass='e-info' onClick={this.onClickAdd.bind(this)}>Add</ButtonComponent>
<ScheduleComponent ref={t => this.scheduleObj = t} cssClass='timeline-resource-grouping' width='100%' height='650px' selectedDate={new Date(2018, 3, 4)} currentView='TimelineDay' timezone="America/New_York" eventSettings={{ dataSource: this.data }} group={{ resources: ['Categories'] }} >
<ResourcesDirective>
<ResourceDirective field='TaskId' title='Category' name='Categories' allowMultiple={true} dataSource={this.categoryData} textField='text' idField='id' groupIDField='groupId' colorField='color'>
</ResourceDirective>
</ResourcesDirective>
<ViewsDirective>
<ViewDirective option='TimelineDay' />
<ViewDirective option='TimelineWeek' />
<ViewDirective option='TimelineMonth' />
</ViewsDirective>
<Inject services={[TimelineViews, TimelineMonth, Resize, DragAndDrop]} />
</ScheduleComponent> |
Hi Rama,Thanks for your update.We have validated the reported “This error is almost always means you have a problem with recursion in JavaScript code” problem at our side and let you know that we can overcome this problem by increasing the memory size, by removing unwanted packages. So we would suggest you to remove the unwanted packages and increase the memory size.Kindly try the above solution and get back to us with the below details, if the issue is not resolved at your end.
- Share the video demo with the issue replication or
- Replicate your problem in the above sample or
- Share a sample (If possible) illustrating the problem which would help us to proceed further.
Regards,Balasubramanian S
This kind of Maximum call stack size exceeded error usually points to an unintended re-render or recursive update loop. In your case, it looks like changing the date via the built-in Calendar and then reloading data through props may be triggering repeated internal updates between the Scheduler and Calendar components. One thing worth checking is whether updating the data source or selectedDate in Redux causes the Scheduler to reinitialize the view each time. You might want to memoize the data passed via props, or ensure that the load-data action does not also reset selectedDate or minDate. Also, verify that actionComplete or other lifecycle callbacks aren’t dispatching Redux actions that indirectly cause the Scheduler to refresh again. Reducing unnecessary prop changes often helps prevent this kind of stack overflow.
Hi Muslim,
Thank you:)
Regards,
Archana