-
Notifications
You must be signed in to change notification settings - Fork 46
Add support to use immutable.js data structures #51
Comments
I give up, cos there is no possible way to use Whole idea of It looks like |
After fast lookup into freact source code, I see the MAGIC under the hood and it just doesn't feels right for me. |
Please, put some mention in docs, that there is no support for |
I don't get this argument. Immutable.js does basically the same thing that What is it exactly that you couldn't do with this library by using |
@everdimension is correct - there should be no measurable performance difference between the two approaches. And, in fact, you could use |
|
Exactly. Structural sharing is the main feature of immutable.js for me.
2017-06-29 9:55 GMT+08:00 Tom Hutchinson <[email protected]>:
… Immutable uses structual sharing
***@***.***/immutable-js-persistent-data-structures-and-structural-sharing-6d163fbd73d2>
for some significant performance improvements over Object.assign (for
large collections).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACJsef2Gj4DiGYMS6GExvHYByJBYj3VPks5sIwP7gaJpZM4NYZRV>
.
|
Alright, I'm convinced. I'm going to look into what it would take for the data-store to be pluggable, allowing the dev to use the default, immutable.js, or some other alternative. |
Can't wait to see your progress) |
I wanna give you heads up. There is an article: https://medium.com/azendoo-team/immutable-record-react-redux-99f389ed676 Current issue I'm experiencing, that it is not possible to use Immutable.Record as rootReducer initialState with redux-immutable |
Do you have any updates on this issue? I'm eager to try it out in my next project. |
@JustFly1984 -- Can you open up a minimal repository with a sample app that uses Immutable the way you'd like to with freactal so we have something easy and tangible to work with as we develop out support for immutable? If you're up for this, please also provide install, build, and dev instructions that so that we can make sure we're on the same page for supporting your use case. Thanks! |
Sorry, currently very busy. I can't reproduce my view of behavior. The main
idea is that there is a single Immutable.Map data structure in the root
instead of standard JS Object, so all reducers added to this Map with
something like combineReducers from react-redux-immutable.
Currently your freactal uses Object.assign instead of combineReducers. You
just can't do Object.assign with Immutable.Map without mutating it. Please
invest your time to understand Immutability ideas. The main feature is
memory and performance savings on state update.
Please read about persistence. Also you could try to experiment using JS
ES6 Map and WeakMap as root data structure. Basically you need to implement
several adapters for root data structures to support Map, WeakMap and
Immutable.Map along with standard JS Object.
2017-10-27 1:08 GMT+08:00 Ryan Roemer <[email protected]>:
… @JustFly1984 <https://github.com/justfly1984> -- Can you open up a
minimal repository with a sample app that uses Immutable the way you'd like
to with freactal so we have something easy and tangible to work with as we
develop out support for immutable?
If you're up for this, please also provide install, build, and dev
instructions that so that we can make sure we're on the same page for
supporting your use case. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACJseZnUp9AWct1tBfYRQUd0311aHDbrks5swLyUgaJpZM4NYZRV>
.
|
Currently All my projects using redux with
immutable.js
instead ofObject.assign
approach.If you do not mind, I could help you and make a pull request of
immutable.js
lib usage for better performance and all goods which comes with immutability.The text was updated successfully, but these errors were encountered: