Socket
Book a DemoInstallSign in
Socket

redux-subspace-observable

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-subspace-observable

redux-subspace wrappers for redux-observable

latest
Source
npmnpm
Version
6.2.1
Version published
Maintainers
3
Created
Source

redux-subspace-observable

Deprecated

This library is no longer being actively maintained.

IOOF has been slowly moving away from the ubiquitous use of Redux as a core piece of our micro-frontend architecture and have been actively replacing the usage of this library with more standard React and JavaScript patterns. Due to some technical constraints, we've also been unable to upgrade to the latest version of the library ourselves for quite some time now, further fuelling our desire to move away from this solution.

At this time, we will be ceasing all maintenance tasks and we recommend that you consider using an alternative library:

If you want to continue using this library, we encourage you to fork this repo and take over maintenance yourself.

npm version npm downloads License: BSD-3-Clause

This is an extension for redux-subspace to create subspaces for epics. It's designed to work with redux-observable middleware.

Installation

npm install --save redux redux-observable redux-subspace redux-subspace-observable

Quick Start

import { createStore, combineReducers } from 'redux'
import { namespaced, applyMiddleware } from 'redux-subspace'
import { createEpicMiddleware, subspaced } from 'redux-subspace-observable'
import { combineEpics } from 'redux-observable'
import { todoReducer, todoEpic } from './todoApp'
import { counterReducer, counterEpic } from './counterApp'

const rootReducer = combineReducers({
  todo: todoReducer
  counter1: namespaced('counter1')(counterReducer),
  counter2: namespaced('counter2')(counterReducer)
})

const rootEpic = combineEpics(
  subspaced((state) => state.todo)(todoEpic),
  subspaced((state) => state.counter1, 'counter1')(counterEpic),
  subspaced((state) => state.counter2, 'counter2')(counterEpic)
)

const epicMiddleware = createEpicMiddleware()

const store = createStore(rootReducer, applyMiddleware())

epicMiddleware.run(rootEpic)

Documentation

FAQs

Package last updated on 27 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts