Dear support,
After migrating to v5.0.1 I have a warning about my eventRenderer.
my renderer depends on user's settings. The user can switch 4 booleans: showErrors,showWarnings,showModifications,isChartTime.
The rendering depends on these booleans. For instance, showErrors will include error icon+ red border when an event is on error etc.... (see screenshot)
So far, everything is working properly except that the warning is displayed:
I use a callback with the 4 booleans.
const eventRenderer = useCallback(
({ renderData, eventRecord }) => {
return renderScheduler(
renderData,
eventRecord,
showModifications,
showErrors,
showWarnings,
isChartTime
);
},
[showModifications, showErrors, showWarnings, isChartTime]
);
then I declare the renderer in the scheduler:
eventRenderer={eventRenderer}
I wanted your advise on what is the best way to deal with that requirement and how I could remove the warning. Thanks,
Aurélien