Relay TodoMVC with routing.
This repo is based on the example from found-relay
.
I have added redux@latest
to this example, upgraded react
to v18 and got the example working again.
This repo now uses the follow packages all linked together:
react
redux
found
+farce
relay
found-relay
Adding redux (somehow) meant found-relay could no longer work with a local only relay network configuration. It generates a strange error with an unrelated message. The actual source of the message turns out to be the convertFetcher function in relay, which other libraries seem to account for, but not this specific combination.
The fix was simple however, instead of a locally defined schema, I created a basic express server with the schema configuration and pointed the network setup to that instead.
This does however mean to run this demo you must also run the server locally.
- In one terminal run
yarn run start:server
- In another terminal run
yarn run start
Then point your browser at http://localhost:8080/.
You can also point to http://localhost:3333/gql to view the graphql playground.