Skip to content

chore(context): disposal-time 'batched listener threw DOMException' warn during _disposeTree #325

Open

Description

@ErickXavier

Observed as pre-existing console.warn noise while running tests/directives-http-pagination.test.js test 70 (dispose mid-defer): context.js:~53 defensive catch logs 'batched listener threw DOMException' when a batched watcher fires against an already-disposed tree. Not user-visible breakage, but it means a watcher survives into disposal long enough to throw. Investigate whether a disposal-order guard (skip notify for disposed contexts) removes the noise; keep the defensive catch either way.

Activity

  1. ErickXavier commented on Oct 22, 2026

    @ErickXavier
    CollaboratorAuthor

    Another reproduction of a watcher surviving into a stale tree, found during the 1.22 docs runtime sweep: an each inside a get that first shows its error template and then succeeds on refresh() (or a URL change) logs batched listener threw … insertBefore. The list still renders correctly, which points to the each watcher from the pre-error render not being disposed when the content is swapped.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions