From 1bb52a8cd99407d2e7ac2b8de576931fc5d6fc01 Mon Sep 17 00:00:00 2001 From: derbynn <44528840+derbynn@users.noreply.github.com> Date: Thu, 3 Oct 2024 09:33:58 -0400 Subject: [PATCH] Update elementsToUpdate set description Co-authored-by: Nick Tessier <22119573+nick4598@users.noreply.github.com> --- packages/transformer/src/IModelImporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/transformer/src/IModelImporter.ts b/packages/transformer/src/IModelImporter.ts index b4783999..fc9e39df 100644 --- a/packages/transformer/src/IModelImporter.ts +++ b/packages/transformer/src/IModelImporter.ts @@ -115,7 +115,7 @@ export class IModelImporter { * * This is used as an optimization when `preserveElementIdsForFiltering` is set to `true` * In normal cases where this option set to `false`, - * the importer determines whether to insert or update based off of whether the ID is defined on `elementProps`. + * the importer determines whether to insert or update based off of whether the ID is defined on the `elementProps` passed to `importElement`. * However, with `preserveElementIdsForFiltering` set to `true`, IDs are always set, so we can't determine insert/update like the normal case. * The transformer already knows if an element exists or not by the time `importElement` is called and pushes to this set with `markElementAsUpdate`. * @note This set should stay small, as right after the transformer pushes to it, the importer will remove from the set.