Skip to content

Commit 09c4836

Browse files
committed
miscellaneous router.tsx and linkFiber comments
1 parent 2f526d5 commit 09c4836

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

demo-app/src/client/Router.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ import Buttons from "./Components/Buttons";
88

99
const root = document.getElementById("root");
1010

11+
const Context = React.createContext({});
12+
1113
ReactDOM.render(
1214
<BrowserRouter>
15+
<Context.Provider value={{ bullshit: 'bullshit' }}>
1316
<Nav />
1417
<Routes>
1518
<Route path="/tictactoe" element={<Board />}/>
1619
<Route path="/" element={<Home />}/>
1720
<Route path="/buttons" element={<Buttons />}/>
1821
</Routes>
22+
</Context.Provider>
1923
</BrowserRouter>, root);

src/backend/linkFiber.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function createTree(
184184
} = currentFiber;
185185

186186
// check to see if we can get the information we were looking for
187+
// need to figure out what tag is
187188
if (tag === 5) {
188189
try {
189190
if (memoizedProps.children[0]._owner?.memoizedProps !== undefined) {

0 commit comments

Comments
 (0)