Skip to content

Commit

Permalink
Update elementsToUpdate set description
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Tessier <22119573+nick4598@users.noreply.github.com>
  • Loading branch information
derbynn and nick4598 authored Oct 3, 2024
1 parent d284496 commit 1bb52a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transformer/src/IModelImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1bb52a8

Please sign in to comment.