Redux SDK

Follow

Comments

1 comment

  • ricky.sullivan

    Your example of how to `configureStore` from Redux Toolkit isn't correct.

    Uncaught Error: "reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers

    You need a reducer key.

    Also, Redux Toolkit will perform `combineReducers` under the hood - https://redux-toolkit.js.org/api/other-exports#combinereducers

    So you could omit the `combineReducers`:

    // Create the Redux Store
    const store = configureStore({
    reducer: {
        splitio: splitReducer,
        ... // Combine Split reducer with your own reducers
    },
      // Split SDK requires thunk middleware, which is included by default by Redux Toolkit
    });
    0
    Comment actions Permalink

Please sign in to leave a comment.