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.

Method to force fresh rerendering of view

See original GitHub issue

Originally reported on Google Code with ID 2444

There doesn't seem to be a way to ensure that the dayRender is re-run on all days. I've
asked a StackOverflow question <http://stackoverflow.com/questions/28401749/redrawing-a-fullcalendar-so-that-the-dayrender-callback-is-called>
that highlights how `render` doesn't always do this. The workaround of recreating the
entire calendar produces visual issues.

This is useful in my case where I am trying to change the appearance of days on the
fly (applying arbitrary CSS and HTML changes to day cells). I need to be able to refresh
the table (and thus calling `dayRender` again) when the source I'm watching changes
(which is the same source that `dayRender` uses to determine how to render each day).

Reported by mike@updex.ca on 2015-02-17 18:48:18

Imported with 3 stars.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

14reactions
arshawcommented, Dec 11, 2015

there’s a rerenderEvents method

13reactions
shenlongcommented, Dec 10, 2015

Meantime, I found that I can refresh if I can the previous and next view.

$('#calendar').fullCalendar('prev');
$('#calendar').fullCalendar('next');

Do take note on performance issue if you have events in the calendar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How and when to force a React component to re-render
Forcing an update on a React class component​​ In any user or system event, you can call the method this. forceUpdate() , which...
Read more >
The correct way to force Vue to re-render a component
The better way: using Vue's built-in forceUpdate method; The best way: using the Key-Changing Technique to refresh your component. However, if you need...
Read more >
Can you force Vue.js to reload/re-render? - Stack Overflow
I have v-for directive in the view and have use case when I manually swap two objects on that array. Vue doesn't automatically...
Read more >
How to force a React component to re-render - Educative.io
The shouldComponentUpdate() method allows your Component to exit the Update life cycle if there is no reason to apply a new render. This...
Read more >
Learn how to force react components to rerender without ...
However, if there are implicit changes like changes in deep data within an object that too without the object itself changing or if...
Read more >

github_iconTop Related Medium Post

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