Using the Flux pattern in combination with Relay on a charting use-case
The flux pattern is around for a while and has found its implementations in popular libraries like e.g. Redux. When using a GraphQL server for the data representation of an application, Relay and Apollo are the two widely used GraphQL clients. Relay has lacked until recently the feature of directly manipulating the client data store. With this new feature, Relay can be used to update data in a component tree with Redux-like update functions, which are directly connected to specific components. This enables a developer to efficiently manage big data sets and update only the components, where data really change, but without all of the boilerplate of Redux or Apollo, and still having the exact same API as before that feature, including GraphQL type safety. Charting components usually handle big data sets and therefore are a canonical use case for that pattern.