{"record":{"id":"1e5936b3fa0ce602","repo":"emberjs/ember.js","slug":"you-can-t-call-appendchild-on-a-view-being-destroy","errorCode":null,"errorMessage":"You can't call appendChild on a view being destroyed","messagePattern":"You can't call appendChild on a view being destroyed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@ember/-internals/views/lib/views/states.ts","lineNumber":101,"sourceCode":"\n        get() {\n          return elementId;\n        },\n        set(value) {\n          if (value !== elementId) {\n            throw new Error(\"Changing a view's elementId after creation is not allowed\");\n          }\n        },\n      });\n    }\n  },\n});\n\nconst DESTROYING: Readonly<ViewState> = Object.freeze({\n  ...DEFAULT,\n\n  appendChild() {\n    throw new Error(\"You can't call appendChild on a view being destroyed\");\n  },\n\n  rerender() {\n    throw new Error(\"You can't call rerender on a view being destroyed\");\n  },\n});\n\n/*\n  Describe how the specified actions should behave in the various\n  states that a view can exist in. Possible states:\n\n  * preRender: when a view is first instantiated, and after its\n    element was destroyed, it is in the preRender state\n  * hasElement: the DOM representation of the view is created,\n    and is ready to be inserted\n  * inDOM: once a view has been inserted into the DOM it is in\n    the inDOM state. A view spends the vast majority of its\n    existence in this state.","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@ember/-internals/views/lib/views/states.ts#L83-L119","documentation":"Error \"You can't call appendChild on a view being destroyed\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@ember/-internals/views/lib/views/states.ts:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}