A Relay utility that enables fetching and storing GraphQL data outside React components for use in Flux/Redux stores.
Relay-sink is a utility for Relay Classic that allows fetching and storing GraphQL data outside of React components. It solves the problem of accessing Relay-managed data in external systems like Flux or Redux stores, where data was previously confined to React's component hierarchy.
React developers using Relay Classic for GraphQL data fetching who need to integrate Relay data with external state management systems like Flux or Redux.
Developers choose relay-sink because it extends Relay's capabilities beyond React components, enabling cleaner architecture patterns where data can be dispatched to external stores while maintaining Relay's declarative data-fetching benefits.
Use Relay to fetch and store data outside of a React component
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Enables fetching GraphQL data outside React components, allowing direct dispatch to Flux or Redux stores, as shown in the README example with store.dispatch.
Functions as a Relay Container that composes with parent containers normally, maintaining Relay's declarative data-fetching patterns without breaking existing setups.
Provides onFragmentUpdate callbacks that deliver unwrapped fragment data when available, facilitating real-time updates to external state management systems.
Bridges Relay's data fetching with external stores, enabling cleaner separation of concerns for testing or decoupled architectures.
Only compatible with Relay Classic, which is deprecated in favor of Relay Modern, making it unsuitable for new or modernized projects.
Adds an abstraction layer on top of Relay, which can complicate codebases and introduce maintenance overhead for simple use cases.
Serves a specific integration need for external stores, but with Relay Classic's deprecation, its relevance and community support are diminishing.