a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

close list toolbar when not list after timeout

+4 -1
+4 -1
components/Toolbar/ListToolbar.tsx
··· 86 86 let { rep } = useReplicache(); 87 87 88 88 useEffect(() => { 89 - if (!isList?.data.value) props.onClose(); 89 + if (!isList?.data.value) { 90 + let timeout = setTimeout(() => props.onClose(), 50); 91 + return () => clearTimeout(timeout); 92 + } 90 93 }, [props, isList]); 91 94 92 95 return (