Pravesh Choudhary
Pravesh Choudhary

Reputation: 93

FullCalender v5.0 not supporting viewRender for React

I am trying to call a function via viewRender prop in React FullCalender implementation. But it is not calling on click of next month or prev month. Did anyone face this issue ? viewDidMount works well when I change the view from say, month to week or visa versa.

Upvotes: 1

Views: 1916

Answers (1)

TechTG
TechTG

Reputation: 88

If you want to have some event call on calendar view change you can try to use datesSet event. In the returned object you will get a view name field.

enter image description here

Upvotes: 2

Related Questions