Open taou-maimai opened 9 years ago
Sure, send a PR and I'll merge that as a stop-gap. This makes fixing https://github.com/dustingetz/react-cursor/issues/17 much more important in my eyes.
'refsCache'
I will send a PR in 30 min.
@taou-maimai are you still using this in server side rendering? Does any of your server side code actually execute a cursor update (which would typically be wired to user interaction callbacks)? The memory leak can be solved without hacks for this special case using WeakMap.
Add a helper function called on server-side to reset 'refCache' in util.js?