@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.
@@ -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.includeBluesky) params.set("includeBluesky", "true");
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