Duplicate onClick handlers added (and type error) #44
Closed
mattsbennett
started this conversation in
General
Replies: 2 comments 1 reply
-
Added related issue: #45 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mattsbennett about types in event handlers: echarts itselt is not a typescript-first lib, and I could not find specific types declarations for event handlers within its source code. In fact, I had to declare a list with the possible events handlers to be able to pass them as props. I hate having to do this but I could not find a better option. I came back over this issue to see if latest versions would fix this issue but it's still unresolved. Any ideas on how to overcome this issue is welcomed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This handler is called multiple times - it seems with each render, another instance of the handler is added. Also, there is no type definition for
onClick
it seems.Beta Was this translation helpful? Give feedback.
All reactions