DEV Community

Discussion on: Normalize your React Query data with MobX State Tree

Collapse
 
dilmodev profile image
Dillon Morris

Great article!

Are there any benefits react-query provides that we lose by storing our results in the state tree? In the tweet below, Tanner Linsley says he doesn't combine his global state tree (in his case zustand) until he needs them in the same place:

twitter.com/tannerlinsley/status/1...

Collapse
 
hrastnik profile image
Mateo Hrastnik Lloyds digital

You don't lose any benenfits. You have to write a bit more code for mst, but thats just the types that you have to write anyway if you use TS