Cashed component instance #12000
-
|
Hello, have interestign bug reported from QA. inside component we have form when modal is opened applicationDate gets current date but if system is left opened for 24 hours and without refresh QA opens modal applicationDate gets previous date value. Something is cashing the component? Because form is initialized no in ngOnInit... but thanks for any idea |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Dialogs component are only created when you subscribe to the All
Something else must be going on there. |
Beta Was this translation helpful? Give feedback.
Dialogs component are only created when you subscribe to the
Observablereturned fromopenand are not cached anywhere, each subscription would create a new instance:https://github.com/taiga-family/taiga-ui/blob/main/projects/cdk/services/popover.service.ts#L63
https://github.com/taiga-family/taiga-ui/blob/main/projects/core/components/dialog/dialogs.template.html#L16
All
new PolymorpheusComponentdoes are those 2 things:Injectortogether with the component class.instanceofcheck so that we can differentiate functions from component classes.Something else must be going on there.