Giter Club home page Giter Club logo

Comments (7)

supasate avatar supasate commented on May 25, 2024 1

PR #140 is addressing this issue.

from connected-react-router.

darko-dev avatar darko-dev commented on May 25, 2024

Hey @linonetwo, I had a similar problem while using redux-sagas-injector. I needed the reducer exposed too, so I came up with a hack where you can get the reducer without exposing it from the library.

// pass the empty function for the rootReducer 
let routerReducer = connectRouter(history)(() => {}); 

// then use routerReducer as regular reducer in your reducers map with an extra line of code
let allMyReducers = {
...allMyReducers,
router: (state, action) => { let result = rootReducer(state, action); return state.router }
}

Let me know if it works for you, and please, let me know if I am missing something with this approach. Thanks!

from connected-react-router.

linonetwo avatar linonetwo commented on May 25, 2024

Sorry @dantonijevic , I'm not using connected-react-router and rematch anymore. I've switched to Apollo-GraphQL for more convenient data fetching...

from connected-react-router.

bdwain avatar bdwain commented on May 25, 2024

@linonetwo can you reopen this issue please? it's still relevant I think even though you're not using it anymore.

cc @supasate This would be really helpful to use with redux-loop

from connected-react-router.

bdwain avatar bdwain commented on May 25, 2024

bump @supasate any thoughts on this?

from connected-react-router.

bdwain avatar bdwain commented on May 25, 2024

cool thanks!

from connected-react-router.

supasate avatar supasate commented on May 25, 2024

Closing as already fixed in #150.

from connected-react-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.