mobx-tanstack-query
v6.11.3
Published
MobX wrappers for Tanstack Query (Core)
Maintainers
Readme
mobx-tanstack-query
MobX wrapper for Tanstack Query Core package
Read the docs →
import { Query } from "mobx-tanstack-query";
const query = new Query({
queryClient,
queryKey: ['hello', 'world'],
queryFn: async () => {
const response = await fetch('/hello/world');
return await response.json();
}
})
reaction(
() => query.isLoading,
isLoading => {
if (isLoading) {
console.log('Loading...');
}
}
)Contribution Guide
Want to contribute ? Follow this guide
