Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brunos3d/mf-nextjs-ssr-react-query-data-fetching-poc

mf-nextjs-ssr-react-query-data-fetching-poc
https://github.com/brunos3d/mf-nextjs-ssr-react-query-data-fetching-poc

container data-fetching docs example mf micro-frontend module-federation next nextjs pattern react-query sample share ssr standard tanstack

Last synced: 20 days ago
JSON representation

mf-nextjs-ssr-react-query-data-fetching-poc

Awesome Lists containing this project

README

        

# Module Federation Next.js Data Fetching with Tanstack Query (react-query)

This is an advanced example of using Module Federation with Next.js and Tanstack Query (react-query) to use Next.js data fetching strategies.

## Getting Started

```bash
npm install
```

Run the following command to start the Next.js apps:

```bash
nx run-many --target=serve --all --skip-nx-cache --verbose --parallel=4
```

Browse to the following URLs:

- http://localhost:3000/ (advanced federation, main host app)

- http://localhost:3001/ (advanced federation)

- http://localhost:3002/ (basic federation)

- http://localhost:3003/ (basic federation)