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.

Using debounce in renderEvents

See original GitHub issue

Hi,

Have you thought about using debounce function when rendering events? I did a really quick test and replaced renderEvents with debounced version (in reportEvents) and performance improvement is significant (e.g. when adding and removing eventSources).

var renderEventsDebounced = debounce(renderEvents, 50);

I am just curious, because maybe you have tried this before but discovered some important disadvantages?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:10
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
arshawcommented, Dec 5, 2016

implemented and released in v3.1.0

eventRenderWait https://fullcalendar.io/docs/event_rendering/eventRenderWait/

off by default.

1reaction
kferriocommented, Jun 13, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using debounce within the React render cycle | by Chanon Roy
Using debounce within the React render cycle. Debounce behaviour is helpful when we want additional control over when a function is called.
Read more >
How to Use Debounce and Throttle in React and Abstract ...
debounce : returns a function that can be called any number of times (possibly in quick successions) but will only invoke the callback...
Read more >
How to perform debounce? - Stack Overflow
I'm not defining a debouncing function in this answer as it's not really relevant, but this answer will work perfectly fine with _.debounce...
Read more >
How to Correctly Debounce and Throttle Callbacks in React
In this post, you'll learn how to correctly use React hooks to apply debouncing and throttling techniques to callbacks in React. If you're ......
Read more >
How and when to debounce or throttle in React
Learn how (and when) to debounce or throttle functions in React with this comprehensive, detailed tutorial.
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