Skip to content

Since the internet is full of examples of working various combinations of react, redux, relay, and found, but NEVER all of them! I had to do this myself.

License

Notifications You must be signed in to change notification settings

MartinWebDev/react-redux-relay-found

Repository files navigation

Relay TodoMVC with Redux added

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

Usage

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.

About

Since the internet is full of examples of working various combinations of react, redux, relay, and found, but NEVER all of them! I had to do this myself.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published