0.9.1 • Published 4 years ago

@redux-tools/epics-react v0.9.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@redux-tools/epics-react

React bindings for the @redux-tools/epics package.

API Reference

withEpics

Creates a component decorator which handles the lifecycle of passed epics, mounting and unmounting them automatically. The namespace of the epics is determined based on React context.

Arguments

  1. epics (Object): The epics to use.
  2. options (Object): Options for the decorator. Possible options: isGlobal: boolean, isPersistent: boolean, feature: string, and namespace: string.

Returns

(Function): A component decorator.

Example

import React from 'react';
import { withEpics } from '@redux-tools/epics-react';

import { epic } from './duck';

const Container = () => null;

export default withEpics({ someEpic: epic })(Container);

<Provider />

See injectors-react for more info.

0.9.1

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.5.0-alpha.4

5 years ago

0.5.0-alpha.3

5 years ago

0.5.0-alpha.2

5 years ago

0.5.0-alpha.1

5 years ago

0.5.0-alpha.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago