nicolium: call queryClient.setQueryData directly when possible

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 12:49:39 +01:00
parent f0c3eb606a
commit 8a01accaa0
21 changed files with 166 additions and 135 deletions

View File

@ -28,10 +28,19 @@ const translations = memoize((lang: string, client: PlApiClient) =>
}),
);
const familiarFollowers = memoize((client: PlApiClient) =>
create({
fetcher: (ids: string[]) => client.accounts.getFamiliarFollowers(ids),
resolver: keyResolver('id'),
scheduler: bufferScheduler(200),
}),
);
const batcher = {
relationships,
groupRelationships,
translations,
familiarFollowers,
};
export { batcher };