Closed idolize closed 8 years ago
@dptoot Mind giving this a look?
Thanks @calvinclaus
Sorry it took me so long to get on this. Life is hectic these days.
@dptoot No problem - thanks!
Do you mind pushing a new version to npm when you get a chance?
Fixes #24
There is currently a bug where event data will be missing when the (e.g.
onMouseOver
) callbacks trigger - I currently getfalse
on occasion for theeventData
param in my callback.I believe this is because
this.sharedArguments
is only computed and cached once, when the component is created, and never updated as the props change. So on each subsequent re-render, there is a chance the two will become out of sync.This fixes it by updating
this.sharedArguments
each time the props update.@calvinclaus @dptoot