Redux SDK


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 -

    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
    Comment actions Permalink

Please sign in to leave a comment.