Is it okay to use tanstack query with next js 12 and react 18
Hello there. In my office production app they are using useeffect for all data fetching task and the code becomes messy as I always use tanstack product in my personal and other projects. So is it okay to use tanstack query in next js 12 with react 18. I am worried that it will break anything and it cause of my job. Thank you. 🙏 just need quidance
2 Replies
flat-fuchsia•11mo ago
That should be fine. Tanstack v5 is good for react 18 and won't care about nextjs or other meta frameworks as far as dependencies go.
I take it it's an old pages router app?
eager-peachOP•11mo ago
Yes sir its old age page router
Sounds good.