index.ts |
Exports all the stores from stores folder and QueryClient instance and QueryClientProvider
|
queryClient.ts |
We export the QueryClient instance and Provider to use the same instance in network calls of store methods. This will avoid any mismatch between instance of handling the network calls using TanStackQuery |
stores Folder |
We create all the stores in this stores folder as a seperate file for a specific module and export them in index.ts of the stores folder. |
types Folder |
Exports all the types related to stores. Use seperate .d.ts files for defining types for a store and export them in index.d.ts of the types folder. |