From 6d6d1249fdd3e18cae01e704f332bc5fa757b8c7 Mon Sep 17 00:00:00 2001 From: Mariia Zueva Date: Wed, 4 Feb 2026 13:43:28 +0100 Subject: [PATCH] Switch to retentive outputs (cherry picked from commit ce8582fe590cbe9adc1fe62b8c4b11430903cc31) --- .changeset/four-planes-walk.md | 5 +++++ model/src/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/four-planes-walk.md diff --git a/.changeset/four-planes-walk.md b/.changeset/four-planes-walk.md new file mode 100644 index 0000000..540ac0a --- /dev/null +++ b/.changeset/four-planes-walk.md @@ -0,0 +1,5 @@ +--- +"@platforma-open/milaboratories.rarefaction.model": patch +--- + +Switch to retentive outputs diff --git a/model/src/index.ts b/model/src/index.ts index 9f83aad..c89ec8e 100644 --- a/model/src/index.ts +++ b/model/src/index.ts @@ -76,7 +76,7 @@ export const model = BlockModel.create() /************************* * OUTPUTS * *************************/ - .outputWithStatus('graphPFrame', (ctx) => { + .retentiveOutputWithStatus('graphPFrame', (ctx) => { const pCols = ctx.outputs?.resolve('rarefactionPFrame')?.getPColumns(); if (pCols === undefined) { return undefined; @@ -86,7 +86,7 @@ export const model = BlockModel.create() .output('rarefactionPFrameCols', (ctx) => { return ctx.outputs?.resolve('rarefactionPFrame')?.getPColumns()?.map((p) => p.spec); }) - .outputWithStatus('table', (ctx) => { + .retentiveOutputWithStatus('table', (ctx) => { const cols = ctx.outputs?.resolve('rarefactionPFrame')?.getPColumns(); if (cols === undefined) { return undefined;