So when I was implementing Scheduler I got following error when trying to change events using drag & drop functionality. Take into accounnt that it happens only with events which have same start date
Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
You can check the issue here. https://stackblitz.com/edit/react-a2zwzm To reproduce it just move several today's events into another day square. You will get a lot of messages in console.