Coder Social home page Coder Social logo

mksarge / redux-first-routing Goto Github PK

View Code? Open in Web Editor NEW
131.0 3.0 26.0 493 KB

A minimal, framework-agnostic API for accomplishing Redux-first routing.

Home Page: https://medium.freecodecamp.com/an-introduction-to-the-redux-first-routing-model-98926ebf53cb

License: MIT License

JavaScript 100.00%
redux-first-routing redux middleware history client-side client-side-routing routing

redux-first-routing's People

Contributors

mksarge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redux-first-routing's Issues

update history dependency

Hi,
recently i started getting warnings in console:
Warning: Please use require("history").createBrowserHistory instead of require("history/createBrowserHistory"). Support for the latter will be removed in the next major release.

push pushes the pathname to router and path changes but does not trigger re-render.

Hi,
I've been using your project for some time.
It always worked fine.
I've been away from react for a time and have lately started a project.
I've updated all packages to the latest versions.
The base project template did not change.
After the package updates and a minor change from Router to BrowserRouter and From Switch to Paths, everything was running.
Now I'm working on a component where I try to implement push.
It works as expected, The store updates and the pathname changes with one minor difference.
There's no component change, as I've implemented a updateTick, I don't have to force update as react is constantly updating.
If I add to createBrowserHistory({forceReload:true}) everything starts working again. But as we know, reloads are not really permitted in single page apps.
What is going wrong with the package, what do I have to implement to make the BrowserRouter notice that the pathname has changed and another component should be loaded?
Thanks
[The mentioned template: https://github.com/PatrykSitko/react-template]

Invariant Violation: Browser history needs a DOM

Hello! I have tried to add this line of code to my store.js file:
const history = createBrowserHistory();
But when I do, I get this error:
Invariant Violation: Browser history needs a DOM
Any ideas, tips?

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.