tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
invalidate queries
tsiry-sandratraina.com
2 months ago
d16fbb10
8b2ccb8e
+7
-7
1 changed file
expand all
collapse all
unified
split
apps
web
src
pages
home
feed
Feed.tsx
+7
-7
apps/web/src/pages/home/feed/Feed.tsx
···
1
1
import styled from "@emotion/styled";
2
2
+
import { useQueryClient } from "@tanstack/react-query";
2
3
import { Link } from "@tanstack/react-router";
3
4
import { Avatar } from "baseui/avatar";
4
5
import type { BlockProps } from "baseui/block";
···
7
8
import { LabelSmall } from "baseui/typography";
8
9
import dayjs from "dayjs";
9
10
import relativeTime from "dayjs/plugin/relativeTime";
11
11
+
import { useAtomValue } from "jotai";
12
12
+
import { useEffect, useRef } from "react";
10
13
import ContentLoader from "react-content-loader";
14
14
+
import { feedGeneratorUriAtom } from "../../../atoms/feed";
15
15
+
import { followingFeedAtom } from "../../../atoms/followingFeed";
11
16
import Handle from "../../../components/Handle";
12
17
import SongCover from "../../../components/SongCover";
18
18
+
import { WS_URL } from "../../../consts";
13
19
import {
14
20
useFeedInfiniteQuery,
15
21
useScrobbleInfiniteQuery,
16
22
} from "../../../hooks/useFeed";
17
17
-
import { useEffect, useRef } from "react";
18
18
-
import { WS_URL } from "../../../consts";
19
19
-
import { useQueryClient } from "@tanstack/react-query";
20
23
import FeedGenerators from "./FeedGenerators";
21
21
-
import { useAtomValue } from "jotai";
22
22
-
import { feedGeneratorUriAtom } from "../../../atoms/feed";
23
23
-
import { followingFeedAtom } from "../../../atoms/followingFeed";
24
24
25
25
dayjs.extend(relativeTime);
26
26
···
80
80
await queryClient.invalidateQueries({
81
81
queryKey: ["infiniteFeed", feedUri],
82
82
});
83
83
-
// await queryClient.invalidateQueries({ queryKey: ["now-playings"] });
83
83
+
await queryClient.invalidateQueries({ queryKey: ["now-playings"] });
84
84
// await queryClient.invalidateQueries({ queryKey: ["scrobblesChart"] });
85
85
};
86
86