Hi,
I am using eventStore to load the events in the Gantt.
Step 1 : After loading the eventStore, I am getting the eventStore records as such:
orgScheduleRef.current.instance.eventStore.records
Step 2 : Add new event to eventStore
orgScheduleRef.current.instance.eventStore.add({
id: eventId,
resource: ...,
startDate: startDate.$d,
endDate: endDate.$d
})
orgScheduleRef.current.instance.assignmentStore.add({
resource: ...,
event: eventId
});
Step 3 : Before event edit, i am getting the eventRecord as such:
beforeEventEdit({ eventRecord }) {
console.log('eventRecord in beforeEventEdit :: ', eventRecord);
I noticed that the eventRecord.internalId is different in step 3 as compared to step 1 (for the events not added in step 2). However, for events added in step 2, the event.internalId is matching with the eventRecord.internalId in step 3. May i know is this the expected behaviour? Also, is it recommended to use internal id to compare the identical events?
Thanks.
Charlene