Use react-query but no react ... #790
Unanswered
zevenbergm
asked this question in
General
Replies: 2 comments 4 replies
-
Any luck pursuing this @zevenbergm ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Yup is a shame this is not possible right now with vanilla js/ts only. I'm currently working on backend and would love to have this to make queries without having to re-do the wheel as you could say 😆 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Thanks for this awesome project on GitHub! I love the react-query way of working with the server state; however, I'm working on a project without React... It should be wonderful if I could use the core functionalities only? I've played around with this idea and it seems to be working: https://codesandbox.io/s/magical-bush-gbsk7?file=/src/index.js ... or do I miss something important? The only thing which is not working is the refetch interval. If possible, I would like to avoid the dependy on React. How can this be accomplished? Maybe it's an idea to substract the core parts in another project and NPM library? :)
Thanks,
Martin
Beta Was this translation helpful? Give feedback.
All reactions