Giter Site home page Giter Site logo

jeffuberman / redux-query Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amplitude/redux-query

1.0 1.0 0.0 13.04 MB

A library for managing network state in Redux

Home Page: https://amplitude.github.io/redux-query

License: Other

JavaScript 99.44% HTML 0.32% CSS 0.24%

redux-query's Introduction

redux-query

Travis Codecov

A library for managing network state in Redux.

Why use redux-query?

  • It's simply Redux: Follow best practices for storing and handling network state in Redux, with support for features like optimistic updates and cancellation. There's no magic here, just middleware, actions, selectors, and reducers.
  • It's extensible: Built to fit most use cases out-of-the-box, but can easily be extended with custom Redux middleware, UI integrations, and network interfaces.
  • It works great with React: With the provided React hooks and higher-order component in redux-query-react (optional), colocate data dependencies with your components and run requests when components mount or update.

Docs

Redux API

React API

Examples

  • Simple example: This example is a very simple web app that has only one feature โ€“ you can view and update your username. The purpose of this example is to demonstrate how requests and mutations (including optimistic updates) work with redux-query.
  • Hacker News: This example shows how to use redux-query, redux-query-react, and redux-query-interface-superagent to build a basic Hacker News client.

Packages

This project is published as multiple packages. redux-query, the core library, is the only required package. redux-query-react is recommended if you are using React in your application. redux-query requires a network interface which handles the implementation of network requests. You must either use the recommended interface, redux-query-interface-superagent, or supply your own.

Name Version Description
redux-query npm The core library for managing network requests with Redux.
redux-query-react npm Library of APIs for integrating redux-query with React components.
redux-query-interface-superagent npm The recommended network interface that handles network requests.

Upgrade guides

Contributing

See CONTRIBUTING.md.

License

MIT

About

Brought to you by Amplitude Engineering. We're hiring!

redux-query's People

Contributors

rctbusk avatar ryanashcraft avatar dependabot[bot] avatar myztiq avatar karevn avatar petejohanson avatar adamsanderson avatar acontreras89 avatar siegcollado avatar rohovdmytro avatar willcaul avatar miklosme avatar blazzy avatar jnutter avatar jeanregisser avatar ricfang avatar trashstack avatar victorandree avatar tnovotny-vendavo avatar kix avatar hobbeswalsh avatar mrnice avatar iamlacroix avatar mili-confluent avatar kelvin-lu avatar lukyth avatar kamranayub avatar joewoodhouse avatar jeffuberman avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.