Giter Site home page Giter Site logo

Comments (4)

granmoe avatar granmoe commented on September 12, 2024 3

I'd also love to have immutable js compat. Haaalp!

from redux-little-router.

marcselman avatar marcselman commented on September 12, 2024

Yes, it would be great if you could add ImmutableJS support soon.

from redux-little-router.

 avatar commented on September 12, 2024

Is there a way to use an immutable store at this time?

I'm kind of stuck on this issue right now. Pondering if it'd be wise to go with a non-immutable store with immutable properties for the time being.

Does anyone have any ideas regarding this issue? :-)

from redux-little-router.

JustFly1984 avatar JustFly1984 commented on September 12, 2024

The main bummer right now with all routers, react-router, redux-little-router too is that there is no support of Immutable.Record as rootReducer's initialState. https://medium.com/azendoo-team/immutable-record-react-redux-99f389ed676
For the state it is important to be immutable, and as far as I know, only immutable.js provides Structural sharing. Which is very good performance optimization on large collections.

The issues starts when you coming to API. If you use Immutable.Map or List, you need to use getIn/set api to fetch data from the state in mapPropsToState, but then you use Immutable.Record, there is API similar with Native JS API.

I think there should be some kind of middleware to update/fetch location in redux.

from redux-little-router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.