LearnNewsExamplesServices
Frontmatter
id8023
titleComponent.show() updateDepth fix
stateClosed
labels
bugai
assigneestobiu
createdAtDec 4, 2025, 2:56 PM
updatedAtDec 4, 2025, 2:57 PM
githubUrlhttps://github.com/neomjs/neo/issues/8023
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 4, 2025, 2:57 PM

Component.show() updateDepth fix

Closed v11.16.0 bugai
tobiu
tobiu commented on Dec 4, 2025, 2:56 PM

Changed src/component/Base.mjs show() method to set updateDepth to -1 instead of 2.

Rationale: When re-showing bigger component trees, we need to ensure the full tree is updated, not just 1 child level. This was causing buggy behavior in the Colors app and the new AgentOS app, particularly when closing popup windows to re-integrate widgets.

Change:

// src/component/Base.mjs
show() {
    // ...
    if (me.parentId !== 'document.body') {
        me.parent.updateDepth = -1; // Changed from 2
        me.parent.update()
    }
    // ...
}
tobiu added the bug label on Dec 4, 2025, 2:56 PM
tobiu added the ai label on Dec 4, 2025, 2:56 PM
tobiu assigned to @tobiu on Dec 4, 2025, 2:57 PM
tobiu closed this issue on Dec 4, 2025, 2:57 PM