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
Added routes.ts file which exports an instance of a custom Routes class. The routes class is imported by linkFiber where its addRoute method is invoked before sending a new snapshot to the frontend and by timeJump where its navigate method is invoked during time travel. Improved logic in timeJump that controls when mode.jumping switches back to false. Added url property to tree class.
Copy file name to clipboardExpand all lines: src/backend/linkFiber.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ import {
28
28
importTreefrom'./tree';
29
29
// passes the data down to its components ?
30
30
importcomponentActionsRecordfrom'./masterState';
31
+
importroutesfrom'./routes';
31
32
32
33
// throttle returns a function that can be called any number of times (possibly in quick succession) but will only invoke the callback at most once every x ms
33
34
// getHooksNames - helper function to grab the getters/setters from `elementType`
Copy file name to clipboardExpand all lines: src/backend/tree.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ class Tree {
61
61
62
62
recoilDomNode: any;
63
63
64
+
url: string;
65
+
64
66
// Duplicate names: add a unique number ID
65
67
// Create an object 'componentNames' to store each component name as a key and it's frequency of use as its value
66
68
// 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)
0 commit comments