ksquareincmx / react-guidelines

KSquare Inc. React Guidelines
4 stars 0 forks source link

Come up with a standard for using Redux #2

Open Rodmg opened 5 years ago

Rodmg commented 5 years ago

Title: Come up with a standard for using Redux Date: 26/02/2019 By: Rodrigo Mendez

Motivations

We are using Redux in several projects internally, and I've seen a preference for the ducks standard, maybe we should standardize for using this standard? I know that Comoto has experience in this.

Sources

https://github.com/erikras/ducks-modular-redux https://medium.freecodecamp.org/scaling-your-redux-app-with-ducks-6115955638be

mishelashala commented 5 years ago

I like working with redux + ducks, but even the purpose of ducks is to "standarize" the directory structure it lacks on other areas: naming, file "size", separation of concerns.

@Stidro could you provide a draft for the guideline? It doesn't need to be extensive, just a draft. We can add things on the fly.

jcomoto commented 5 years ago

@Rodmg @mishelashala Ducks allow an easy way to maintain our redux stuff, keeping it simple, organized and easy to escalate our projects. That way we can have a project with a module structure, each module would have a duck containing all redux/business logic. Also this allows us to share logic and actions with other modules within the project.

I think ducks are an excellent option to add in our projects as well as Observables.

I'll share with you a more detailed and curated list of elements about redux ducks soon. @EduardoMY can help us with this too.