@singi-labs/sifa-sdk 0.19.6 → 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.
@@ -1242,7 +1242,8 @@ var FOLLOWING_FEED_LXM = "id.sifa.feed.getFollowingFeed";
1242
1242
  async function fetchFollowingFeed(config, opts = {}) {
1243
1243
  const params = new URLSearchParams();
1244
1244
  if (opts.limit) params.set("limit", String(opts.limit));
1245
- if (opts.includeBluesky) params.set("includeBluesky", "true");
1245
+ if (opts.app) params.set("app", opts.app);
1246
+ else if (opts.includeBluesky) params.set("includeBluesky", "true");
1246
1247
  const qs = params.toString();
1247
1248
  const headers = { ...opts.headers ?? {} };
1248
1249
  if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
@@ -3160,9 +3161,12 @@ function useFollowingList(handle, opts = {}, options) {
3160
3161
  function useFollowingFeed(opts = {}, options) {
3161
3162
  const config = useSifaConfig();
3162
3163
  return reactQuery.useQuery({
3164
+ // `app` is part of the key: each source tab is its own cache entry, so
3165
+ // switching tabs does not serve the previous tab's items.
3163
3166
  queryKey: sifaQueryKeys.follow.feed({
3164
3167
  limit: opts.limit,
3165
- includeBluesky: opts.includeBluesky
3168
+ includeBluesky: opts.includeBluesky,
3169
+ app: opts.app
3166
3170
  }),
3167
3171
  queryFn: () => fetchFollowingFeed(config, opts),
3168
3172
  ...options