1

I'd prefer to use the Immutable.js library than the seamless-immutable library and I'm not sure if it's possible to use with Redux.

How can it be used along with Redux?

2
  • 2
    Is it possible to use strawberry preserves with chunky organic peanut butter for a fresh slice of sour dough bread? Commented Mar 17, 2017 at 20:01
  • The answer to the both OP and @RyanWheale is: yes Commented Mar 17, 2017 at 20:06

1 Answer 1

1

Yes, it's absolutely possible. Redux itself doesn't actually care what data you store or how you store it. The only real built-in limitation is that combineReducers does expect to be used with a plain JS object. So yeah, there's a lot of people out there using Immutable.js with Redux.

The Redux docs were recently updated with two new sections: FAQ: Immutable Data and Recipes: Using Immutable.js with Redux, which ought to be helpful.

That said, I personally advise against using Immutable.js, for several reasons (which I wrote about in a Reddit comment a while back), but it's a valid choice. You may also want to look at my list of immutable data structure and immutable update utility libraries as well for some relevant tools.

Sign up to request clarification or add additional context in comments.

1 Comment

One way to handle the combineReducers problem is to use redux-immutable. It know it's buried inside the links you posted but I thought it was worth a comment here for future readers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.