Angular adapter ยท console.warn
<lattice-tabs>: `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, because rebuilding it would lose whichever tab is open and any state its content holds. Put the strip inside an `@if` keyed on what changed if a genuine rebuild is wanted; a live badge otherwise belongs in your own template.
Printed by Angular adapter, prefixed [lattice], since 1.65.0.
Warnings reference › angular.tabs.mountOnly.tabs
- Identifier
angular.tabs.mountOnly.tabs- Raised by
- Angular adapter
- Since
- 1.65.0
What happened
ngOnChanges on the Angular tabs component saw a new tabs array. The strip reads its descriptors once at construction and has no method to repaint one, so the change could not be applied; the component reports it rather than rebuilding, which would close the open tab.
The fix
Wrap the element in an @if you toggle when a new strip is genuinely wanted. Keep a live badge in your own template.
The smallest fix
@if (workspaceId) {
<lattice-tabs [tabs]="tabs" [active]="active" />
}
Reference
Covered in full at the API reference.