Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/TanStack/ai
/ onConfig
Function
onConfig
packages/ai/tests/middleware-capabilities.test.ts:195–198 ·
view source on GitHub ↗
(ctx)
Source
from the content-addressed store, hash-verified
193
name:
'greeter-consumer'
,
194
requires: [cap],
195
onConfig(ctx) {
196
seen.push(
'onConfig'
)
197
expect(getGreeting(ctx).greeting).toBe(
'hi'
)
198
},
199
}
200
const
{ adapter } = createMockAdapter({
201
iterations: [
Callers
nothing calls this directly
Calls
2
get
Method · 0.65
push
Method · 0.45
Tested by
no test coverage detected