How to use the redux-dynamic-modules-saga.getSagaExtension function in redux-dynamic-modules-saga

To help you get started, we’ve selected a few redux-dynamic-modules-saga examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / redux-dynamic-modules / packages / widgets-example / src / App.js View on Github external
super(props);

        // define the initial state where none of the widgets are visible
        this.state = {
            hackerNews: false,
            weather: false,
        };

        /**
         * configure the store and load the thunk and saga extension
         * The extensions are optional and you can choose extension based on the middleware you use
         * You can also build your own extensions for any other middleware e.g. redux-observable
         */
        this.store = createStore({
            enhancements: [offline(offlineConfig)],
            extensions: [getThunkExtension(), getSagaExtension()],
        });
    }
github microsoft / redux-dynamic-modules / packages / typescript-example / src / App.tsx View on Github external
constructor(props: any, context: any) {
        super(props, context);
        this.store = createStore({ extensions: [getSagaExtension()] });
    }
    render() {

redux-dynamic-modules-saga

Saga Extension for redux-dynamic-modules

MIT
Latest version published 4 years ago

Package Health Score

59 / 100
Full package analysis

Popular redux-dynamic-modules-saga functions