Skip to content

Commit

Permalink
update subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 20, 2025
1 parent 432a41c commit 69f4b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_internal/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const initCache = <Data = any>(
let unmount = noop

const subscriptions: Record<string, ((current: any, prev: any) => void)[]> =
{}
Object.create(null)
const subscribe = (
key: string,
callback: (current: any, prev: any) => void
Expand Down

0 comments on commit 69f4b5b

Please sign in to comment.