When using the schedule component, I have multiple custom fields that I had to make that were necessary for mapping fields on our appointment models. I noticed that one opening the events the first time, the data seems to load correctly, but upon closing and re-opening any event, even the same one, the data only partially loads or disappears. I'm at a bit of a loss for this issue. I suspect maybe it's how I'm adding the fields to the editor.
I am loading the data via axios and the JsonAdaptor. We do not make use of odata endpoints so those adaptors aren't very useful for us.
Below is a snippet of the code I'm using to make the fields in the event editor. This was how it seemed adding fields to the event editor was being recommended, but I am trying to do this via the editor template now. If the editor template is how I should be adding fields I will continue on this way, but I was hoping I could resolve why the data may be failing to populate in the editor on second load.
AppointmentData is fetched via our endpoint and transformed/mapped to take the form we need and then set as state in react, which triggers the memo.
How the editor looks on second load. In this case it's loading the provider type still but the other data is missing.
Please let me know if there's something I need to add here so that we can resolve this better.