All Projects → socialtables → Redux Unhandled Action

socialtables / Redux Unhandled Action

Licence: apache-2.0
Redux middleware that logs an error to the console when an action is fired and the state is not mutated,

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Redux Unhandled Action

Crawler Commons
A set of reusable Java components that implement functionality common to any web crawler
Stars: ✭ 173 (+38.4%)
Mutual labels:  open-source, library
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+427.2%)
Mutual labels:  open-source, library
Length.js
📏 JavaScript library for length units conversion.
Stars: ✭ 292 (+133.6%)
Mutual labels:  open-source, library
Amazing Swift Ui 2019
23 Amazing iOS UI Libraries written in Swift for the Past Year (v.2019)
Stars: ✭ 147 (+17.6%)
Mutual labels:  open-source, library
Angular Tree Component
A simple yet powerful tree component for Angular (>=2)
Stars: ✭ 1,031 (+724.8%)
Mutual labels:  open-source, library
Gerador Validador Cpf
Biblioteca JS open-source para gerar e validar CPF.
Stars: ✭ 312 (+149.6%)
Mutual labels:  open-source, library
Fakeit
The Kotlin fake data generator library!
Stars: ✭ 482 (+285.6%)
Mutual labels:  open-source, library
Humblelogging
HumbleLogging is a lightweight C++ logging framework. It aims to be extendible, easy to understand and as fast as possible.
Stars: ✭ 15 (-88%)
Mutual labels:  open-source, library
Localize and translate
Flutter localization in easy steps, really simple
Stars: ✭ 40 (-68%)
Mutual labels:  open-source, library
Smartisandialog
Smartisan style Dialog.
Stars: ✭ 33 (-73.6%)
Mutual labels:  open-source, library
Raisincss
An Utility CSS only library. It supports css grid and many more useful css properties.
Stars: ✭ 93 (-25.6%)
Mutual labels:  open-source, library
Spider
A small dart library to generate Assets dart code from assets folder.
Stars: ✭ 90 (-28%)
Mutual labels:  open-source, library
Angular Open Source Starter
This is a starter project for creating open-source libraries for Angular. It is a full fledged Angular workspace with demo application and easy library addition. It is designed to be used for open-sourcing libraries on Github and has everything you'd need ready for CI, code coverage, SSR testing, StackBlitz demo deployment and more.
Stars: ✭ 120 (-4%)
Mutual labels:  open-source, library
Colore
A powerful C# library for Razer Chroma's SDK
Stars: ✭ 121 (-3.2%)
Mutual labels:  library
Typed
The TypeScript Standard Library
Stars: ✭ 124 (-0.8%)
Mutual labels:  library
Tap Tap Adventure
Tap Tap Adventure is a massively online 2D MMORPG set in the medieval times with twists.
Stars: ✭ 123 (-1.6%)
Mutual labels:  open-source
Ratifier
Ratifier is a form validation library for Android.
Stars: ✭ 123 (-1.6%)
Mutual labels:  library
Fosite
Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.
Stars: ✭ 1,738 (+1290.4%)
Mutual labels:  library
Black Widow
GUI based offensive penetration testing tool (Open Source)
Stars: ✭ 124 (-0.8%)
Mutual labels:  open-source
Angular Feather
A-la-carte integration of Feather Icons in Angular applications
Stars: ✭ 123 (-1.6%)
Mutual labels:  library

Redux Unhandled Action

Circle CI

A simple redux middleware that will log an error to the console if the state returned from a dispatch is equal to the state before the dispatch.

Install

npm install redux-unhandled-action --save

API

Takes a single argument, an optional callback that will be called if an action is unhandled. The default callback will log an error to the console with the action type.

Use

import { createStore, applyMiddleware } from "redux";
import reduxUnhandledAction from "redux-unhandled-action";
import reducer from "./reducer";
const callback = (action) => console.error(`${action} didn't lead to creation of a new state object`);
const store = createStore(reducer, applyMiddleware(reduxUnhandledAction(callback)));

Copyright (C) 2017 Social Tables, Inc. (https://www.socialtables.com) All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].