Our pure JavaScript Scheduler component


Post by elcr »

I am taking a look at the react advanced example, with redux toolkit. The data from the API request is on the store, but when I add, edit or delete events, it is not reflected on the store. Am I missing something? Or is it intentional that way, and we have to handle it manually? If so is there any example or guide on how we can do that?


Post by tasnim »

Hi,

It's working fine with our redux toolkit example.

chrome_d5QDaP9RCd.gif
chrome_d5QDaP9RCd.gif (729.52 KiB) Viewed 101 times

Can't say what's wrong with your app, without seeing the code.
Can you please upload a runnable test case so we can check what's wrong?


Post by elcr »

Yes it works as a UI, but if you check with redux dev tools, the state is not being updated there. That's what i meant


Post by marcio »

Hey elcr,

That's the expected behavior in the demo, to use Redux as the data source, but not to persist the current data value.

But you can update back the data to Redux using the dataChange event, for more info please check our guide https://bryntum.com/products/schedulerpro/docs/guide/SchedulerPro/integration/react/events#using-datachange-event-to-synchronize-data

Best regards,
Márcio


Post Reply