@singi-labs/sifa-sdk 0.19.5 → 0.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/{network-map-ZV2UJZ3c.d.ts → network-map-BXpm9LIk.d.ts} +1 -1
- package/dist/{network-map-DtmFGMeM.d.cts → network-map-DUIEbJf9.d.cts} +1 -1
- package/dist/{org-eHZkLNx1.d.cts → org-Bfrfa9sD.d.cts} +33 -2
- package/dist/{org-CvJVOYuN.d.ts → org-H2bPqXeC.d.ts} +33 -2
- package/dist/query/fetchers/index.cjs +2 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/fetchers/index.js +2 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -2
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +6 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -2
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.js +6 -2
- package/dist/query/index.js.map +1 -1
- package/dist/{use-org-notification-emails-BZiMeD75.d.ts → use-org-notification-emails-CTFwRc0O.d.ts} +2 -2
- package/dist/{use-org-notification-emails-GNUX9-5y.d.cts → use-org-notification-emails-utRDdmt0.d.cts} +2 -2
- package/package.json +1 -1
|
@@ -2254,7 +2254,8 @@ var FOLLOWING_FEED_LXM = "id.sifa.feed.getFollowingFeed";
|
|
|
2254
2254
|
async function fetchFollowingFeed(config, opts = {}) {
|
|
2255
2255
|
const params = new URLSearchParams();
|
|
2256
2256
|
if (opts.limit) params.set("limit", String(opts.limit));
|
|
2257
|
-
if (opts.
|
|
2257
|
+
if (opts.app) params.set("app", opts.app);
|
|
2258
|
+
else if (opts.includeBluesky) params.set("includeBluesky", "true");
|
|
2258
2259
|
const qs = params.toString();
|
|
2259
2260
|
const headers = { ...opts.headers ?? {} };
|
|
2260
2261
|
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
@@ -2347,9 +2348,12 @@ function useFollowingList(handle, opts = {}, options) {
|
|
|
2347
2348
|
function useFollowingFeed(opts = {}, options) {
|
|
2348
2349
|
const config = useSifaConfig();
|
|
2349
2350
|
return reactQuery.useQuery({
|
|
2351
|
+
// `app` is part of the key: each source tab is its own cache entry, so
|
|
2352
|
+
// switching tabs does not serve the previous tab's items.
|
|
2350
2353
|
queryKey: sifaQueryKeys.follow.feed({
|
|
2351
2354
|
limit: opts.limit,
|
|
2352
|
-
includeBluesky: opts.includeBluesky
|
|
2355
|
+
includeBluesky: opts.includeBluesky,
|
|
2356
|
+
app: opts.app
|
|
2353
2357
|
}),
|
|
2354
2358
|
queryFn: () => fetchFollowingFeed(config, opts),
|
|
2355
2359
|
...options
|