Skip to content

Values used as modifiers from nested function invocations need to have associateDestroyableChild called on them #21037

Closed

Description

@NullVoxPopuli

Reproduction here: ember-modifier/ember-modifier#613 (comment)

The situation is when a modifier is conditionally applied:

<div {{ (if condition someModifier) }}>

when condition becomes false, someModifier is not destroyed

Activity

  1. NullVoxPopuli-ai-agent commented on Sep 4, 2026

    @NullVoxPopuli-ai-agent
    Contributor

    Fix with a failing test in #21591. The root cause is that UpdateDynamicModifierOpcode is never registered as a destroyable child of its block, so any modifier instance it creates on update is never torn down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions