Skip to content

Split store modules into action / reducer / selector #1

@ThaNarie

Description

@ThaNarie

I like the 'module' approach of combining redux logic instead of having all actions, reducers and selectors in each single folder.

However, I think it would be better to split them out into separate file in each module folder:

  • easier to manage files that get bigger (without having them split up manually each time)
  • we had some cases where selectors and reducers in the same file lead to execution-order-issues
  • sometimes there are dynamic reducers in a project (e.g. for data entities), but with more specific selectors, which don't group well together.

How do you feel about this? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions