#Can I use TanStack Query in a Node.js framework, but without a provider?

1 messages · Page 1 of 1 (latest)

jade tree
#

I have a project that is used by other projects. Its basically a framework for providing wrapper functionality so you can plug and play CMS, Ecommerce backends, CRMS, etc.

I can definitely use TanStack Query on the front-end of those projects, as I can wrap in a ClientQueryProvider. Can I use it somehow in this framework without one?

#

For example, I have a hook in my project that is exported and can be used in a front-end.

useProduct() {}

This hook would call an api eventually. I would like to just implement TanStack Query on my base library, instead of having to integrate on every single front-end that uses my library. idk if that makes sense

jade tree
#

basically something like this

jade tree
#

This is a monorepo, I see there are some more github issues with some similar stuff, currently investigating.