Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ subscribable.test.tsx
File
subscribable.test.tsx
packages/query-core/src/__tests__/subscribable.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import { describe, expect, it, vi } from
'vitest'
2
import { Subscribable } from
'../subscribable'
3
4
type Listener = () => void
Callers
nothing calls this directly
Calls
4
subscribe
Function · 0.85
hasListeners
Method · 0.80
unsubscribe
Function · 0.50
subscribe
Method · 0.45
Tested by
no test coverage detected