CaptainCodeman / rdx

Like Redux, but smaller
https://captaincodeman.github.io/rdx/
33 stars 4 forks source link

docs: document routing plugin #22

Closed djlauk closed 4 years ago

djlauk commented 4 years ago

I wrote some documentation for the routing plugin. Hope you'll like it.

CaptainCodeman commented 4 years ago

This looks great!

The only thing I'd change is the use of enums in the example - as they are not used anywhere else it makes it look slightly more complicated to understand than it needs to be. It could just be a note as to the value of using an enum or constants when things are referenced elsewhere, such as in the router outlet or model effects etc...

djlauk commented 4 years ago

Good point on the enum. I changed that.

Now I also added two recipes for routing:

I wrote both recipes from the top of my head, but I think it should work like that. But please do double check that no copy / paste bugs have prevailed.

CaptainCodeman commented 4 years ago

I think you have the case 'todo-list': repeated

djlauk commented 4 years ago

Right you are, of course. Fixed it now.