Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] create a FAQ section #27

Open
morrys opened this issue Oct 15, 2019 · 0 comments
Open

[RFC] create a FAQ section #27

morrys opened this issue Oct 15, 2019 · 0 comments
Labels
docs docs question Further information is requested

Comments

@morrys
Copy link
Owner

morrys commented Oct 15, 2019

How the react-relay-offline version is managed

  • Patch release ..1 : backward compatible & bug fixes
  • Minor release *.1.0 : backward compatible or small breaking change & new small improvements
  • Major release 1.0.0 : breaking change | new important improvements

I recommend using ~ and not ^ in the react-relay-offline version and follow this repository for any update

What are the main dependencies of react-relay-offline?

react-relay-offline uses these libraries to manage the offline:

  • wora/cache-persist
    • manages the status and its persistence in the storage
  • wora/netinfo
    • manages the network status detection
  • wora/offline-first
    • manages all the offline workflow with queuing requests
  • wora/relay-store
    • extension of the Store and Recordsource objects with the integration of wora/cache-persist + TTL
  • wora/relay-offline
    • extension of the relay environment with the integration of the wora/offline-first library

I recommend following the repository wora for any details.

How should I manage the creation of a new node?

When a new node is created by mutation the id must be generated in the browser to use it in the optimistic response.
This ensures the consistency of the store.

offline needs optimistic updater?

the offline needs to have one of the following options:

  • only optimisticResponse
  • optimisticResponse + updater
  • configs
  • optimisticUpdate
@morrys morrys added question Further information is requested docs docs labels Oct 15, 2019
@morrys morrys pinned this issue Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs docs question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant