(query: Query)
| 26 | // The root's list, not the page: a paged query on screen that is not an ad |
| 27 | // request. Everything else mounted (boot, streak, ads) is left alone. |
| 28 | const isRootFeed = (query: Query): boolean => |
| 29 | Array.isArray( |
| 30 | (query.state.data as { pages?: unknown[] } | undefined)?.pages, |
| 31 | ) && query.queryKey[0] !== RequestKey.Ads; |
| 32 | |
| 33 | // Back to the first page, then refetch it in place. A reset would empty the |
| 34 | // query first: the feed fell back to its placeholders and a row built from |
nothing calls this directly
no outgoing calls
no test coverage detected