🦖 TypeScript
🆕 New Features
- Added
context
option touseQuery
anduseMutation
to support modifying headers on per query basis #96 (8248b06)
useQuery({
query: SomeQuery,
context: {
headers: {
// some headers
}
}
});
// can be reactive as well
useQuery({
query: SomeQuery,
context: computed(() => { .... })
});
useMutation(SomeMutation, {
context: {
headers: {
// some headers
}
}
});
// can be reactive as well
useMutation(SomeMutation, {
context: computed(() => { .... })
});