question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

viewDidMount is not being triggered when toggling between timeGridWeek and timeGridDay views

See original GitHub issue

Bug 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:open
  • Created 3 years ago
  • Reactions:11
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ssybergcommented, Jul 7, 2020

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.

2reactions
arshawcommented, Jun 30, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found