Skip to content

Commit 39e6e89

Browse files
(added) currently have a statement to seperate components baserd on tag for context api. still need to test with recoil and other apps
1 parent 04a82e5 commit 39e6e89

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/backend/linkFiber.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,13 @@ function createTree(
185185
if (!currentFiber) return null;
186186
if (!tree) return tree;
187187

188-
189-
console.log('currentFiber', currentFiber);
190-
rtid = `fromLinkFiber${rtidCounter}`
191-
rtidCounter++
188+
if (currentFiber.tag === 0 || currentFiber.tag === 1 || currentFiber.tag === 2) {
189+
if (currentFiber.child && currentFiber.child.stateNode) {
190+
console.log(currentFiber.child.stateNode);
191+
currentFiber.child.stateNode.setAttribute("id", "fromLinkFiber" + rtidCounter);
192+
}
193+
rtidCounter++;
194+
}
192195

193196
// These have the newest state. We update state and then
194197
// called updateSnapshotTree()

0 commit comments

Comments
 (0)