LearnNewsExamplesServices
Frontmatter
id7065
titlecomponent.Base: destroy() => remove `parentStateProvider?.removeBindings(me.id)`
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 15, 2025, 8:00 PM
updatedAtJul 15, 2025, 8:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/7065
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 15, 2025, 8:03 PM

component.Base: destroy() => remove parentStateProvider?.removeBindings(me.id)

Closed v10.0.0-beta.6 enhancement
tobiu
tobiu commented on Jul 15, 2025, 8:00 PM

Obsolete now, since state.Provider cleans up binding effects on its own:

        // The effect observes the component's destruction to clean itself up.
        me.observeConfig(componentId, 'isDestroying', (value) => {
            if (value) {
                effect.destroy();
                me.#bindingEffects.delete(componentId)
            }
        });
tobiu assigned to @tobiu on Jul 15, 2025, 8:00 PM
tobiu added the enhancement label on Jul 15, 2025, 8:00 PM
tobiu referenced in commit b59518a - "component.Base: destroy() => remove parentStateProvider?.removeBindings(me.id) #7065" on Jul 15, 2025, 8:02 PM
tobiu closed this issue on Jul 15, 2025, 8:03 PM