MCPcopy Create free account
hub / github.com/dailydotdev/apps / update

Function update

packages/shared/src/hooks/usePluginAwardSubscription.ts:29–30  ·  view source on GitHub ↗
(plugin: Plugin)

Source from the content-addressed store, hash-verified

27 award: FeaturedAward,
28): void => {
29 const update = (plugin: Plugin): Plugin =>
30 plugin.id === id ? applyPluginAward(plugin, award) : plugin;
31
32 client.setQueriesData<Plugin[]>(
33 { queryKey: [RequestKey.Plugins] },

Callers 1

updateCachedPluginAwardFunction · 0.70

Calls 1

applyPluginAwardFunction · 0.85

Tested by

no test coverage detected