On the project i work now we decided to use react-big-calendar. I am supplying the events data by passing it from the parent component as a props. The data comes in format {start:"ISO date string",end:"ISO date string",title:"Event name", allDay:true/false,eventID:number, roomID:number, ownerID:number}. It was working with my dummy data (without eventID,roomID,ownerID).
So, what is actually breaking: When I chose a room/rooms, it renders all events by this room/rooms. This works in mount, and agenda view. I can navigate trough the toolbar. But when I try to change the view to week,work-week or day it has unpredictable behavior. If there is no event in the day, week, or work-week, it renders well, and navigates trough the toolbar. But if try to change it to week that got events,it is re-rendering the whole page and looses all rendered events. How can I fix this? If anyone can help or suggest what to look for?