Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jantimon/next-relay-demo
Relay React Concurrency Example
https://github.com/jantimon/next-relay-demo
Last synced: 19 days ago
JSON representation
Relay React Concurrency Example
- Host: GitHub
- URL: https://github.com/jantimon/next-relay-demo
- Owner: jantimon
- Created: 2022-05-06T10:48:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-21T10:00:44.000Z (over 2 years ago)
- Last Synced: 2024-10-12T18:15:55.500Z (about 1 month ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 33
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relay React Concurrency Example
[Relay](https://relay.dev/) is designed for high performance at any scale. Relay keeps management of data-fetching easy, whether your app has tens, hundreds, or thousands of components. And thanks to Relay’s incremental compiler, it keeps your iteration speed fast even as your app grows.. Relay Modern accomplishes this with static queries and ahead-of-time code generation.
This example only demonstrates the GrahQL consumption.
The data is provided by an existing [countries graphql api](https://github.com/trevorblades/countries).## How to use
Run Relay ahead-of-time compilation (should be re-run after any edits to components that query data with Relay)
```bash
npm run relay
# or
yarn relay
```Run the project
```bash
npm run dev
# or
yarn dev
```