viewDidMount is not being triggered when toggling between timeGridWeek and timeGridDay views
See original GitHub issueBug Reports
I’ve noticed that viewDidMount
does not appear to be triggered when navigating between the timeGridWeek
and timeGridDay
views. It does, however, get triggered when navigating between the other views.
React/Vue/Angular/etc
This bug is observed with the React version of FullCalendar.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Fullcalendar timeGridWeek and timeGridDay not loading ...
My calendar defaultview is dayGridMonth, which works fine. When I click the buttons that change the view to week or day, it doesn't...
Read more >JavaScript Event Calendar - FullCalendar
Gantt chart arrows between events for timeline view ... viewDidMount is not being triggered when toggling between timeGridWeek and timeGridDay views.
Read more >Fullcalendar Timegridweek And Timegridday Not ... - ADocLib
UI for showing events outside of minTime/maxTime viewDidMount is not being triggered when toggling between timeGridWeek and timeGridDay views.
Read more >@event-calendar/day-grid - npm
timeGridDay {days: 1}; timeGridWeek {weeks: 1}. Sets the duration of a view. This should be a value that can be parsed ...
Read more >How to hide events in fullCalendar?...anycodings - Anycodings.com
eventClassNames: function(arg) { /* you can also use "eventDidMount" */ if (arg.view.type != 'resourceTimeGridDay') { if (arg.event.extendedProps.real_rc !=
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing this with dayGridMonth to dayGridWeek as well.
Is there another render hook to use that will have a similar effect? For a variety of reasons I have to display the view title elsewhere in my template and was trying to use this hook to update it.
EDIT: I see that you can use the viewClassNames hook to do this.
As of v5, when switching between views of the same parent type, the DOM will be reused and the viewDidMount/WillUnmount will NOT fire.
I need to document this better.