@zohodesk/router-middleware

1.0.0-beta.28 • Public • Published

react-router-redux

##Just my thought.

  1. History object is a side-effect. If you are using redux then handle history object inside middleware. Don't flow over component. In react-router, histroy object flow over component via context. All Link(withRouter) component more couple with router. It breaks some reusablity.
  2. Connect(React-Redux) has subscriber model for state changes UI changes. If we sync URL state into app state then we may use same connect component for URL changes also.

I tried some example

npm install
npm run example
http://localhost:9090

1.0.0-beta.16

Match - props support array name={['page1','page2']}

1.0.0-beta.21

reject added

1.0.0-beta.22

1.0.0-beta.25

URL block reason key added in redux state

1.0.0-beta.26

Added support to allow action while url changing

1.0.0-beta.27

Added catch block to allow route change irrespective of the error occured while url is changing.

1.0.0-beta.28

Dispatch Previous Routing state while changing to new Routing state.

/@zohodesk/router-middleware/

    Package Sidebar

    Install

    npm i @zohodesk/router-middleware

    Weekly Downloads

    185

    Version

    1.0.0-beta.28

    License

    none

    Unpacked Size

    97.9 kB

    Total Files

    58

    Last publish

    Collaborators

    • deekay.npm
    • vimalesan
    • skumaresan
    • kathiresan.r
    • jesinth
    • sriramamoorthy
    • lingam
    • ponkumar.s
    • kdsankar
    • sudalaimuthu
    • iniankarthick
    • johnson_raavanan
    • ksamy2020
    • kumaresanm
    • villuvicky
    • _dev_johnson
    • karuppiah.r
    • lakshmi_ts
    • iambk
    • vallinayagam.t
    • navas-0968
    • ganeshkumar.m
    • muthumari
    • antro.j
    • mariappan.r
    • prakash.m
    • maheshmdr
    • esakkimuthu1512
    • madhubalan
    • selvakumar.pl
    • mahalingam.chinnasamy
    • hariharan_vs
    • ramkumar90
    • sankara.subramanian
    • eldhose_saji
    • aravindh.ts
    • deekay.zoho
    • rajsekar.haribalan
    • sheikbasheeth
    • arunkumar.ps
    • jos33
    • immanuel.sm