DEV Community

Discussion on: State Management Nx React Native/Expo Apps with TanStack Query and Redux

Collapse
 
serifcolakel profile image
Serif COLAKEL • Edited

Hi @xiongemi, thank you for providing the documentation for state management. I'm trying to learn and experience nx. I have a question regarding micro front end architecture with global state management using Redux. I've created a template on GitHub (github.com/serifcolakel/nx-monorep...) which incorporates module federation with Webpack, Tailwind CSS, Shadcn and Redux (utilizing Redux Toolkit, Redux Persist, etc.). In this setup, I have a data layer for my services and a global state management solution packaged as an npm package. Could you please advise if this approach is recommended?

Collapse
 
xiongemi profile image
Emily Xiong

do you mean you publish your libraries and import libraries as an npm package dependency in your apps? This approach is pretty common, it is fine.

Collapse
 
serifcolakel profile image
Serif COLAKEL

Thank you