Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
119
fork

Configure Feed

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

at a876aae44ea07494ebea9727350aa060b81f317b 20 lines 390 B view raw
1import {useCallback, useRef} from 'react' 2 3export function useDedupe(timeout = 250) { 4 const canDo = useRef(true) 5 6 return useCallback( 7 (cb: () => unknown) => { 8 if (canDo.current) { 9 canDo.current = false 10 setTimeout(() => { 11 canDo.current = true 12 }, timeout) 13 cb() 14 return true 15 } 16 return false 17 }, 18 [timeout], 19 ) 20}