This package is Opinionated Relay Environment. Goal of this package is to create powerful yet simple to use Relay Environment with all the important features:
- query logging during development
- network fetching with retries and timeouts (see
@mrtnzlml/fetch
)
- support for uploadables
- request burst cache (response cache)
- batch requests
Minimal example:
import {createEnvironment, createNetworkFetcher} from '@mrtnzlml/relay';
module.exports = createEnvironment({
fetcherFn: createNetworkFetcher('http://127.0.0.1:2048'),
});
Please note: this default API is minimalistic on purpose and I will unlock new features only when necessary.
TODO
- subscriptions
- deferrable requests (only simple requests allowed now)
- handle partial errors (is it necessary thought? there is RelayNetworkLogger instead)
Current Tags
- 0.13.0 ... latest (2 years ago)
14 Versions
- 0.13.0 [deprecated] ... 2 years ago
- 0.12.0 [deprecated] ... 2 years ago
- 0.11.0 [deprecated] ... 2 years ago
- 0.10.0 [deprecated] ... 2 years ago
- 0.9.0 [deprecated] ... 2 years ago
- 0.0.8 [deprecated] ... 2 years ago
- 0.0.7 [deprecated] ... 2 years ago
- 0.0.6 [deprecated] ... 2 years ago
- 0.0.5 [deprecated] ... 2 years ago
- 0.0.4 [deprecated] ... 2 years ago
- 0.0.3 [deprecated] ... 2 years ago
- 0.0.2 [deprecated] ... 2 years ago
- 0.0.1 [deprecated] ... 2 years ago
- 0.0.0 [deprecated] ... 2 years ago