Title: `host` bindings aren't refreshed by `ChangeDetectorRef#detectChanges` when component is in a detached mode · Issue #23855 · angular/angular · GitHub
Open Graph Title: `host` bindings aren't refreshed by `ChangeDetectorRef#detectChanges` when component is in a detached mode · Issue #23855 · angular/angular
X Title: `host` bindings aren't refreshed by `ChangeDetectorRef#detectChanges` when component is in a detached mode · Issue #23855 · angular/angular
Description: I'm submitting a... Bug report Current behavior If a child component A is located in component B that has detached its' change detection (with ChangeDetectorRef#detach()), then if the child component A has any host bindings dependant on ...
Open Graph Description: I'm submitting a... Bug report Current behavior If a child component A is located in component B that has detached its' change detection (with ChangeDetectorRef#detach()), then if the child compone...
X Description: I'm submitting a... Bug report Current behavior If a child component A is located in component B that has detached its' change detection (with ChangeDetectorRef#detach()), then if the child...
Opengraph URL: https://github.com/angular/angular/issues/23855
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`host` bindings aren't refreshed by `ChangeDetectorRef#detectChanges` when component is in a detached mode","articleBody":"## I'm submitting a...\r\n\r\nBug report\r\n\r\n## Current behavior\r\n\r\nIf a child component A is located in component B that has detached its' change detection (with `ChangeDetectorRef#detach()`), then if the child component A has any host bindings dependant on its' local state, then they aren't never being refreshed, even if the component A calls its' `ChangeDetectorRef#detectChanges()`.\r\n\r\nIt works correctly if its' parent component hasn't his change detection detached.\r\n\r\n## Expected behavior\r\n\r\nIt should work correctly as well. If the view interpolations are being refreshed after `detectChanges()`, then the host bindings should be refresh as well.\r\n\r\n## Minimal reproduction of the problem with instructions\r\n\r\nhttps://stackblitz.com/edit/angular-u8hf6k\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\r\nTo improve the performance of our app, we are using detached change detection in all of top components of our app tree. Then, we are manually informing angular whenever a component is changed, either by updating its' inputs OR by calling manually its' `ChangeDetectorRef#detectChanges()`.\r\n\r\n## Environment\r\n\r\nAngular version: 6.0.0\r\n\r\nBrowser:\r\n- [x] Chrome (desktop) recent version","author":{"url":"https://github.com/jtomaszewski","@type":"Person","name":"jtomaszewski"},"datePublished":"2018-05-11T14:16:07Z","url":"https://github.com/angular/angular/issues/23855"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e080f4ca-57d0-8743-ad7c-eb0275f10055 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCF8:2E3FEE:19833E5:205051D:6B01451C |
| html-safe-nonce | 90a2e327571a5b05e3e80856c32eb73e4c3cf062be762d424b9eb5a6e0b60a69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0Y4OjJFM0ZFRToxOTgzM0U1OjIwNTA1MUQ6NkIwMTQ1MUMiLCJ2aXNpdG9yX2lkIjoiNjM2Nzg3ODQ2ODAxNjg4Mjk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2f7a675b703e37fc1bbf70a8e3780345e37f73887f3a54c947ca8fc1ca7e32c5 |
| hovercard-subject-tag | issue:322313258 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/23855/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c62f2aa6ec899db1da4f763db3a7af85fd434bbf755c4a5916ef2387a265cd6c/angular/angular/issues/23855 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c62f2aa6ec899db1da4f763db3a7af85fd434bbf755c4a5916ef2387a265cd6c/angular/angular/issues/23855 |
| og:image:alt | I'm submitting a... Bug report Current behavior If a child component A is located in component B that has detached its' change detection (with ChangeDetectorRef#detach()), then if the child compone... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jtomaszewski |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width