Skip to content

v1.0.0-rc.12

Compare
Choose a tag to compare
@logaretm logaretm released this 17 Feb 08:00
· 213 commits to main since this release

πŸ¦– TypeScript

  • Exposed the OperationResult interface #97 (7ba3972)

πŸ†• New Features

  • Added context option to useQuery and useMutation 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(() => { .... })
});