Error when dragging event

I’m getting an error when dragging and dropping an event on an EventCalendar. I’m wondering if you have any quick suggestions.

Uncaught TypeError: “start” is read-only
React 29
_onEventDragStop
_onEventDragEnd
_hook
onEnd
w
Cn
T
Cn
_a
_mounted
componentDidMount
invokeLayoutEffectMountInDEV
invokeEffectsInDev
legacyCommitDoubleInvokeEffectsInDEV
commitDoubleInvokeEffectsInDEV
flushPassiveEffectsImpl
flushPassiveEffects
commitRootImpl
commitRoot
performSyncWorkOnRoot
flushSyncWorkAcrossRoots_impl
flushSyncWorkOnAllRoots
processRootScheduleInMicrotask
scheduleImmediateTask
scheduleImmediateTask
ensureRootIsScheduled
scheduleUpdateOnFiber
forceStoreRerender
handleStoreChange

Hello @Andrew1 :wave:

Are you using immutable data? - Responsive event calendar documentation for React | Mobiscroll

Hi Zsombor,

No, I’m not using the immutable option. Any other quick thoughts? This may be an edge case that is difficult to reproduce.

Andrew

Are you referring to the immutable option or data? - I’m asking because if you are using immutable data, you should enable the immutableData option as mentioned in the docs.

If you are not using any immutable data, please share a few lines of code on how you create the data array and how you pass it to the eventcalendar.

Hi Zsombor,

The data was indeed immutable, and the new immutableData option was exactly what I needed. Thanks for the quick and on target advice!

Andrew

1 Like