Lattice Grid Buy a licence

Vue adapter ยท console.warn

LatticeTabs: `tabs` changed (a label, a badge or a descriptor), but the strip takes it only when created - the module has no way to repaint an existing tab. Nothing was applied and the strip was NOT rebuilt - rebuilding it would lose whichever tab is open and any state its content holds. Give the component a `key` that changes when a genuine rebuild is wanted; a live badge otherwise needs to live in your own render.

Printed by Vue adapter, prefixed [lattice], since 1.66.0.

Warnings referencevue.tabs.mountOnly.tabs

Identifier
vue.tabs.mountOnly.tabs
Raised by
Vue adapter
Since
1.66.0

What happened

A Vue watcher on the tabs prop saw a new array after the strip was built. The tabs module takes its descriptors at construction only, so the watcher has nothing to apply; it reports once rather than rebuilding, because a rebuild would close the open tab and drop its content's state.

The fix

Put a changing :key on the component when a genuine rebuild is intended. Keep a live badge in your own template instead.

The smallest fix

<LatticeTabs :key="workspaceId" :tabs="tabs" v-model:active="active" />

Reference

Covered in full at the API reference.