Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.44 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.44 KB

logo

mobx-tanstack-query

NPM version test status build status npm download bundle size

MobX wrapper for Tanstack Query Core package

Documentation is here

import { MobxQuery } from "mobx-tanstack-query";

const query = new MobxQuery({
  queryClient,
  queryKey: ['hello', 'world'],
  queryFn: async () => {
    const response = await fetch('/hello/world');
    return await response.json();
  }
})