Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Don't poll for latest for Discover (#7993)

authored by

Eric Bailey and committed by
GitHub
4b7bda70 799205e6

+16 -1
+16 -1
src/view/com/posts/PostFeed.tsx
··· 226 226 ) 227 227 228 228 const checkForNew = React.useCallback(async () => { 229 + // Discover always has fresh content 230 + if (feedUriOrActorDid === DISCOVER_FEED_URI) { 231 + return onHasNew?.(true) 232 + } 233 + 229 234 if (!data?.pages[0] || isFetching || !onHasNew || !enabled || disablePoll) { 230 235 return 231 236 } ··· 240 245 } catch (e) { 241 246 logger.error('Poll latest failed', {feed, message: String(e)}) 242 247 } 243 - }, [feed, data, isFetching, isEmpty, onHasNew, enabled, disablePoll, refetch]) 248 + }, [ 249 + feed, 250 + data, 251 + isFetching, 252 + isEmpty, 253 + onHasNew, 254 + enabled, 255 + disablePoll, 256 + refetch, 257 + feedUriOrActorDid, 258 + ]) 244 259 245 260 const myDid = currentAccount?.did || '' 246 261 const onPostCreated = React.useCallback(() => {