• Stars
    star
    1,103
  • Rank 42,076 (Top 0.9 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 8 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library for managing network state in Redux

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!

More Repositories

1

Amplitude-JavaScript

JavaScript SDK for Amplitude
JavaScript
305
star
2

Amplitude-iOS

Native iOS/tvOS/macOS SDK
Objective-C
303
star
3

Amplitude-Android

Native Android SDK for Amplitude
Java
160
star
4

Amplitude-TypeScript

TypeScript Amplitude Analytics SDK
TypeScript
132
star
5

react-amplitude

A React component library for easy product analytics instrumentation (deprecated)
JavaScript
116
star
6

Amplitude-Flutter

Official Amplitude Flutter SDK
Dart
89
star
7

Amplitude-ReactNative

Official Amplitude React Native SDK
TypeScript
81
star
8

Amplitude-Node

Server-side Node.js SDK for Amplitude
TypeScript
68
star
9

unity-plugin

Official Amplitude Unity Plugin
C++
42
star
10

Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
Swift
32
star
11

Amplitude-Kotlin

Amplitude Kotlin SDK
Kotlin
28
star
12

Amplitude-Flutter-Deprecated

Amplitude's Flutter SDK
Dart
27
star
13

Amplitude-Python

Python Amplitude Analytics SDK
Python
22
star
14

GTM-Web-Demo

Web demo app for Google Tag Manager + Amplitude integration
HTML
19
star
15

amplitude-dev-center

Amplitude's Developer Center docs.
HTML
18
star
16

itly-sdk

Iteratively Analytics SDK for browsers and Node — JavaScript & TypeScript
TypeScript
18
star
17

analytics-go

Go Amplitude Analytics SDK
Go
11
star
18

ampli-examples

Example apps using the Ampli SDK
Java
9
star
19

Amplitude-Unreal

Unreal Engine SDK/Plugin for Amplitude
Objective-C
8
star
20

storybook-addon-amplitude

JavaScript
8
star
21

GTM-Android-Demo

Android demo app for Google Tag Manager + Amplitude integration
Java
8
star
22

experiment-js-client

Amplitude Experiment client-side SDK for JavaScript
TypeScript
7
star
23

amplitude-gtm-template

Smarty
6
star
24

itly-sdk-ios

Iteratively Analytics SDK for iOS — Swift & Objective-C
Swift
6
star
25

Amplitude-Java

Official Amplitude Java SDK
Java
6
star
26

experiment-react-native-client

React Native Client SDK for Amplitude Experiment
TypeScript
6
star
27

amplitude-js-gtm

Amplitude JS wrapper for GTM custom template
JavaScript
5
star
28

experiment-android-client

Kotlin
4
star
29

itly-sdk-jvm

Iteratively Analytics SDK for JVM — Android, Kotlin & Java
Kotlin
4
star
30

amplitude-figma

Personal workspace for amplitude figma
TypeScript
4
star
31

experiment-go-server

Amplitude Experiment Server-side SDK for Go
Go
4
star
32

GTM-iOS-Demo

iOS demo app for Google Tag Manager + Amplitude integration
Objective-C
4
star
33

experiment-implementation-examples

A repository of examples implementations of Amplitude Experiment
TypeScript
3
star
34

experiment-python-server

Amplitude Experiment Python Server SDK
Python
3
star
35

amplitude-server-gtm-template

Amplitude Server Side GTM Template
Smarty
3
star
36

experiment-ios-client

Swift
3
star
37

itly-sdk-ruby

Iteratively SDK for Ruby
Ruby
2
star
38

experiment-node-server

TypeScript
2
star
39

GTM-cross-domain-script

HTML
2
star
40

ai-product-hackathon

Documentation and starter code for the 2023 AI x Product Hackathon
Python
2
star
41

homebrew-ampli

Homebrew Formulae for Ampli CLI
Ruby
2
star
42

experiment-evaluation

Kotlin multiplatform experiment evaluation library
Kotlin
2
star
43

itly-sdk-python

Iteratively Analytics SDK for Python
Python
2
star
44

experiment-jvm-server

Amplitude Experiment Server-side SDK for the Java and Kotlin
Kotlin
2
star
45

experiment-ruby-server

Amplitude Experiment Ruby Server SDK
Ruby
2
star
46

experiment-php-server

Amplitude Experiment PHP Server SDK
PHP
2
star
47

amplitude-browser-sdk-gtm-template

The amplitude GTM template with @amplitude/analytics-browser internal
Smarty
2
star
48

amplitude-ios-core

Swift
1
star
49

iOS-Demo-Carthage

iOS demo app testing Carthage support for Amplitude-iOS SDK
Objective-C
1
star
50

Android-Demo

Simple tilt maze game with Amplitude integration
Java
1
star
51

corona-plugin

Amplitude plugin for Corona
Lua
1
star
52

chrome-extension-demo

JavaScript
1
star
53

skylab-reactnative-client

Java
1
star
54

Segment-Android-Demo

Java
1
star
55

skylab-button-demo

Demo for moving a button
JavaScript
1
star
56

evaluation-proxy-helm

A Helm chart for deploying the Amplitude Experiment Evaluation Proxy on Kubernetes.
Smarty
1
star
57

amplitude-win

Amplitude SDK for Windows Apps
C#
1
star