nicolium: call queryClient.setQueryData directly when possible
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user