cleanup firehose

This commit is contained in:
Brandon Thomas committed 2021-05-30 03:48:18 -04:00
1 parent edbef69e69
commit 73a33308af
1 file changed
+1 -12
@@ -74,7 +74,6 @@ function FirehoseEventListFc(props: Props) {
}
}
useEffect(() => {
doSetTimeout();
return () => {
@@ -82,17 +81,6 @@ function FirehoseEventListFc(props: Props) {
}
}, []) // NB: Empty array dependency sets to run ONLY on mount
//const pollingAsync = useCallback(()=> {
// async () => {
// try {
// //await someLongRunningProcess()
// if (componentIsMounted.current) {
// }
// } catch (err) {
// }
// }
//}, [setFirehoseEvents])
let eventItems : Array<JSX.Element> = [];
firehoseEvents.forEach(event => {
@@ -297,6 +285,7 @@ function FirehoseEventListFc(props: Props) {
<h1 className="title is-1"> Firehose events </h1>
<div className="content is-large">
<p>Slightly slow until I do some infrastructure magic.</p>
<ul>
{eventItems}
</ul>