Skip to content
Discussion options

You must be logged in to vote

Dialogs component are only created when you subscribe to the Observable returned from open and 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 PolymorpheusComponent does are those 2 things:

  1. Allows storing Injector together with the component class.
  2. Allows for instanceof check so that we can differentiate functions from component classes.

Something else must be going on there.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vytautas-pranskunas-
Comment options

@waterplea
Comment options

@vytautas-pranskunas-
Comment options

Answer selected by waterplea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants