You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Create an object 'componentNames' to store each component name as a key and it's frequency of use as its value
62
-
//When a new component is made on the tree, check if the new component's name already exists in 'componentNames' (possibly with the .hasOwnProperty method)
63
-
//If the name already exists, add its value (an integer) to the name
64
-
//Also, increment the value after
65
-
//If not, create the new component and also a new key: value pair in 'componentNames' with the component's name as the key and 0 as its value
66
-
//EXAMPLE OF COMPONENTNAMES OBJECT: {editableInput: 1, Provider: 0, etc}
60
+
//Duplicate names: add a unique number ID
61
+
//Create an object 'componentNames' to store each component name as a key and it's frequency of use as its value
62
+
//When a new component is made on the tree, check if the new component's name already exists in 'componentNames' (possibly with the .hasOwnProperty method)
63
+
//If the name already exists, add its value (an integer) to the name
64
+
//Also, increment the value after
65
+
//If not, create the new component and also a new key: value pair in 'componentNames' with the component's name as the key and 0 as its value
66
+
//EXAMPLE OF COMPONENTNAMES OBJECT: {editableInput: 1, Provider: 0, etc}
0 commit comments