I have integrated useMemo as per your suggestion. However, even after that, the data changes are not syncing — it is still emitting the entire dataset, as mentioned earlier. I have attached a payload screenshot for your reference.
Wrong_payload.png (65.57 KiB) Viewed 87 times
In the console log, scheduler.crudManager.changes is showing correctly, but the data is still not syncing.
console_scheduler_crudmanager.png (52.95 KiB) Viewed 87 times
I’m also sharing the code block for your review. Kindly go through it and guide me on how to proceed.
Payload doesn't look like event records to me.
We need to check that at runtime I am afraid. Please attach runnable demo, instructions how to build and run, steps to reproduce, actual and expected result described.
It’s not possible for me to share runnable code due to runtime dependencies.
However, I’m also facing an issue when adding events via drag-and-drop. I’ve described the issue and shared the relevant code snippet in the forum post linked below:
I’m trying to remove events when clicking on “Unassigned” and add new events via drag-and-drop. During the sync call, these changes (removed or newly added events) should reflect correctly in the CRUD manager.
Currently, the events added via drag-and-drop do not persist after sync, and events removed by clicking "Unassigned" are not cleared from the store.
Could someone guide me on,
How to properly remove events from the store when clicking on "Unassigned"?
How to correctly add events during drag-and-drop so they are retained and synced via the CRUD manager?
It seems like you're correctly setting the removeUnassignedEvent configuration on the event store. Ensure that the eventStoreConfig is properly linked to the Scheduler's event store. You might want to verify that the configuration is being applied correctly by checking the event store instance after initialization.
Additionally, make sure that the unassignEventFromResource function is being called correctly and that the event store is updated accordingly. You can log the event store's state after the operation to ensure the event is being removed.
If the issue still persists, please provide more details or code snippets showing how the event store is initialized and linked to the Scheduler. This will help in diagnosing the problem further.