TerraStackIO / terrastack

This project is archived, but the idea of Terrastack lives on in the Terraform CDK. - https://github.com/hashicorp/terraform-cdk
https://terrastack.io
74 stars 1 forks source link

WIP: Add component added event #18

Closed littldr closed 4 years ago

littldr commented 5 years ago

To be able to draw a fancy visualisation, we need to know how many components were added to the stack (before doing anything). Cause events are transmitted immediately after emit, we need to do this after the stack was initialized.

Any better idea how we could handle this?

skorfmann commented 5 years ago

Cause events are transmitted immediately after emit, we need to do this after the stack was initialized.

Is it a problem to render multiple times as we add components to the stack?

littldr commented 5 years ago

Cause events are transmitted immediately after emit, we need to do this after the stack was initialized.

Is it a problem to render multiple times as we add components to the stack?

Idk. currently it seems to 'work'... If the Stack gets huge, maybe this can be a problem. But if we really use ink, it will throttle the output per default.