I'm working with a component where I'm passing events and resources directly as props to the SchedulerEventsProjectModel instead of using a CRUD manager. The component re-renders through a useSelector statement connected to Redux.
What I need to know: What are the available options that would trigger an event when I add events and resources to this model?
const SchedulerEventsProjectModel = forwardRef<
BryntumSchedulerProProjectModel,
{}
((_props, ref) => {
console.log('@SchedulerEventsProjectModel');
const { schedulerEventsProjectRef } = useRmsGridInstance();
const { schedulerEvents, schedulerResources } = useSelector(
selectAllUnallocatedTasksByContext
);
// Custom hooks
useEventProjectProcess();
useImperativeHandle(ref, () => schedulerEventsProjectRef.current);
return (
<BryntumSchedulerProProjectModel
ref={schedulerEventsProjectRef}
{...EventsProjectConfig}
resources={schedulerResources}
events={schedulerEvents}
listeners={{
load: () => {
console.log('🤣 ');
},
}}
/>
);
});
export default React.memo(SchedulerEventsProjectModel);