Skip to content

js2me/mobx-tanstack-query

Repository files navigation

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();
  }
})