SinkFactory
default SinkContainer scope
SinkFactory vs SinkContainer
import { SinkFactory, SinkContainer } from 'redux-sink';
import { CounterSink } from './CounterSink';
const store = SinkFactory.creatStore();
// creat a clean store by a new container
const container = new SinkContainer();
const testStore = container.creatStore();
// this will create a sink inside container instead of SinkFactory
const counter = container.getSink(CounterSink);createStore(SinkConfiguration) => Store
getSink(SinkClass) => SinkInstance
getTasks() => Array<Promise>
getStore() => Store
Last updated