diff options
Diffstat (limited to 'vnext/src/App.js')
-rw-r--r-- | vnext/src/App.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js index 4251d52c..3479ad4f 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -97,7 +97,8 @@ export default function App() { }); }, [x, y, setScrollState]); const [hash, setHash] = useState(cookie.load('hash')); - const [eventSource, setEventSource] = useState({}); + + const [eventSource, setEventSource] = /** @param EventSource? */ useState(null); useEffect(() => { let es; @@ -176,10 +177,10 @@ export default function App() { <Chat connection={eventSource} visitor={visitor} /> </Route> <Route exact path="/:user/friends"> - <Friends visitor={visitor} /> + <Friends /> </Route> <Route exact path="/:user/readers"> - <Readers visitor={visitor} /> + <Readers /> </Route> <Route exact path="/:user"> <Blog visitor={visitor} /> |