Component is not reacting by dataset in using VueUiGauge and VueUiWheel #40
-
Reactive Issues
Dev environment
Usoing components
Result In VueCodesDataSet
Vue template codes
Configuration
While applying "series" and "value" together, series is rerendered like belowsChanging gaugeData code
Result of rendering |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @manulsan :) You can upgrade to version 2.2.18 which solves reactivity issues for these components. Let me know if you still have issues with these components. I don't think you should update the PS. const step = ref(0);
watch(() => props.liveData.widgetData.value.value, () => {
step.value += 1;
}) <VueUiGauge
:dataset="dataset"
:config="config"
:key="`gauge_${step}`"
/> This forces the whole component to re-render with the new dataset. Cheers |
Beta Was this translation helpful? Give feedback.
-
By upgrading, It is working well. Thank you |
Beta Was this translation helpful? Give feedback.
Hi @manulsan :)
You can upgrade to version 2.2.18 which solves reactivity issues for these components.
Thank you for pointing it out, and for trying out the library!
Let me know if you still have issues with these components.
I don't think you should update the
from
andto
attributes of the dataset series. They are meant to be fixed to convey information about how bad or good is the current value.PS.
Another way to force re-redering while waiting for a solution would have been for you to add a key to the component, and increment it whenever dataset changes.