We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a82e5 commit 39e6e89Copy full SHA for 39e6e89
src/backend/linkFiber.ts
@@ -185,10 +185,13 @@ function createTree(
185
if (!currentFiber) return null;
186
if (!tree) return tree;
187
188
-
189
- console.log('currentFiber', currentFiber);
190
- rtid = `fromLinkFiber${rtidCounter}`
191
- rtidCounter++
+ if (currentFiber.tag === 0 || currentFiber.tag === 1 || currentFiber.tag === 2) {
+ if (currentFiber.child && currentFiber.child.stateNode) {
+ console.log(currentFiber.child.stateNode);
+ currentFiber.child.stateNode.setAttribute("id", "fromLinkFiber" + rtidCounter);
192
+ }
193
+ rtidCounter++;
194
195
196
// These have the newest state. We update state and then
197
// called updateSnapshotTree()
0 commit comments