Using debounce in renderEvents
See original GitHub issueHi,
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:
- Created 8 years ago
- Reactions:10
- Comments:14 (6 by maintainers)
Top 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 >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
implemented and released in v3.1.0
eventRenderWait
https://fullcalendar.io/docs/event_rendering/eventRenderWait/off by default.
+1