Open ghost opened 6 years ago
Hi @mbeaudru-mrkl, thanks for your report
After some research it seems an arrow function could be lost if babel enter in the dance. Are your using it?
I am using babel and am getting this issue. What would be the best way around it?
Expect not using Babel, there nothing you can do to avoid the transformation
Hi, I have the following component:
But it is transformed to this instead:
This cast is not only visually bad, it also changes the function behavior since an arrow function passes the this value from the context and not function. We might want to use "this" inside the callback function to alter the parent component state.
By the way, this library is very useful ! Thanks :+1: