mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
cleanup firehose
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user