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
Issue - Not fully compatible with recoil apps. Reference the recoil-todo-test.
@@ -32,8 +34,63 @@ interface BarStackProps {
32
34
hierarchy: any;
33
35
}
34
36
37
+
38
+
39
+
// function getComponentsArr(componentName, snapshots, node) {
40
+
// //Input: Name of component and all snapshots
41
+
// //Output: One array of each individual snapshot
42
+
43
+
// //NOTE:
44
+
// //Every snapshot is an object with a children array with a snapshot that also has a children array etc
45
+
// //Children arrays more than one signify siblings
46
+
47
+
// }
48
+
// // snapshots.map(rootNode => {
49
+
// // // rootNode.name
50
+
// // let currNode = rootNode
51
+
// // while (currNode) {
52
+
// // if (currNode.name === componentName) {
53
+
// // return currNode.componentData.props
54
+
// // } else {
55
+
// // currNode = currNode.children[0]
56
+
// // currNode = currNode.children[1]
57
+
// // }
58
+
// // }
59
+
// // })
60
+
61
+
constcollectNodes=(snaps,componentName)=>{
62
+
constcomponentsResult=[];
63
+
// console.log("This is the snapshots", snaps);
64
+
// componentsResult.splice(0, componentsResult.length); { /* We used the .splice method here to ensure that nodeList did not accumulate with page refreshes */ }
0 commit comments