@martinbean I have to searched again, because the problem is not solved.
With a simple "'book-'+book.id" key, it doesn't work.
I wanted to simplify for the post with books, but the real datas are here.
endpoint.active_connection.state.color
If I write a simple key, it doesn't work.
<component :is="EndpointComponent" :item="endpoint" v-for="(endpoint, index) in endpoints" :key="endpoint.id">
</component>
When the color changes, it is not updated on the screen.
The component is like this.
// Template of the YHexagon component
<y-hexagon
:borderColor1="endpoint.active_connection.state.color"
>
<slot></slot>
</y-hexagon>
And here is the template of the YHexagon component.
<div
class="transition-all hexagon-border-1 absolute"
:style="hexagonContentBorderStyle1"
></div>
const hexagonContentBorderStyle1 = computed(() => {
return {
width: `${calculatedContentBorderBlockWidth.value}px`,
height: `${calculatedContentBorderBlockHeight.value}px`,
top: `${calculatedBorderWidth.value}px`,
left: `${calculatedBorderWidth.value}px`,
backgroundColor: `${props.borderColor1}`,
};
});
The calculared values are computed properties.
Is there anything that prevents for a good reactivity ?
Thanks for your help.