Skip to content

Commit 3ef2623

Browse files
committed
chore: replace Map with DataMap in components.list
1 parent 16c279d commit 3ef2623

File tree

1 file changed

+2
-1
lines changed
  • packages/core/src/core/Components

1 file changed

+2
-1
lines changed

packages/core/src/core/Components/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
import { Component, Disposable, Event } from "../Types";
88
import { UUID } from "../../utils";
99
import { FragmentsManager } from "../../fragments";
10+
import { DataMap } from "@thatopen/fragments";
1011

1112
/**
1213
* The entry point of the Components library. It can create, delete and access all the components of the library globally, update all the updatable components automatically and dispose all the components, preventing memory leaks.
@@ -24,7 +25,7 @@ export class Components implements Disposable {
2425
* The list of components created in this app.
2526
* The keys are UUIDs and the values are instances of the components.
2627
*/
27-
readonly list = new Map<string, Component>();
28+
readonly list = new DataMap<string, Component>();
2829

2930
/**
3031
* If disabled, the animation loop will be stopped.

0 commit comments

Comments
 (0)