Skip to content

Commit 7464830

Browse files
Samuel  TranSamuel  Tran
authored andcommitted
Removed commented out deprecated isRecoil code above sendSnapshot function
1 parent ef0ea38 commit 7464830

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/backend/linkFiber.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import routes from './routes';
3232
// 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
3333
// getHooksNames - helper function to grab the getters/setters from `elementType`
3434
import { throttle, getHooksNames } from './helpers';
35-
import AtomsRelationship from '../app/components/AtomsRelationship';
3635

3736
// Set global variables to use in exported module and helper functions
3837
declare global {
@@ -45,39 +44,11 @@ let fiberRoot = null;
4544
let doWork = true;
4645
const circularComponentTable = new Set();
4746
const isRecoil = false;
48-
let allAtomsRelationship = [];
4947
let initialstart = false;
5048
let rtidCounter = 0;
5149
let rtid = null;
5250
const recoilDomNode = {};
5351

54-
// Simple check for whether our target app uses Recoil
55-
// can these be regular
56-
57-
// if (window.$recoilDebugStates) {
58-
// isRecoil = true;
59-
// }
60-
61-
// This is deprecated Recoil code. Recoil as of 01-03-2021
62-
// does not work well with Reactime. Leaving any Recoil
63-
// code in codebase to assist with Recoil implementations
64-
// in the future.
65-
/*
66-
function getRecoilState(): any {
67-
const RecoilSnapshotsLength = window[`$recoilDebugStates`].length;
68-
const lastRecoilSnapshot =
69-
window[`$recoilDebugStates`][RecoilSnapshotsLength - 1];
70-
const nodeToNodeSubs = lastRecoilSnapshot.nodeToNodeSubscriptions;
71-
const nodeToNodeSubsKeys = lastRecoilSnapshot.nodeToNodeSubscriptions.keys();
72-
nodeToNodeSubsKeys.forEach((node) => {
73-
nodeToNodeSubs
74-
.get(node)
75-
.forEach((nodeSubs) =>
76-
allAtomsRelationship.push([node, nodeSubs, 'atoms and selectors'])
77-
);
78-
});
79-
}
80-
*/
8152
/**
8253
* @method sendSnapshot
8354
* @param snap The current snapshot
@@ -116,7 +87,6 @@ function sendSnapshot(snap: Snapshot, mode: Mode): void {
11687
},
11788
'*'
11889
);
119-
allAtomsRelationship = [];
12090
}
12191

12292
/**

0 commit comments

Comments
 (0)