Custom global plugin settings merge with built-in plugins? #10577
Unanswered
d0ublezer0
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @d0ublezer0 May I ask are you passing your plugin as a prop to the chart component or just registering it globally? Also it looks like that the problem is with |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i use Chart.js + react-chartjs-2
The goal is update my custom plugin settings when some state parameters changed.
For example, chart settings object are:
1. params object
2. my chart plugin
My custom plugin, registered globally is:
And then I use this construction to update the border parameters, but this code is very unstable. Either it draws or it doesn't.
3. react update hook
4. dilemma
But if I remove the {plugin} section from the parameters object #1, everything works fine.
I think, chartjs options object rewrite my plugin drawing after some internal update, but I can't track when this event happens
What i do wrong?
Beta Was this translation helpful? Give feedback.
All reactions