Skip to content

Complete migration from redux mapping to redux hooks for plugin-hrm-form #3866

@stephenhand

Description

@stephenhand

We would like to complete the process of modernising our React code by replacing the remaining usages of state and dispatch mappings with redux hooks.

Limit changes to those required to achieve the above goal, avoid unnecessary refactors, renames etc.

Preserve the usage of the asyncDispatch wrapper in any action dispatching code that is updated.

Use existing select functions to implement useSelector calls, or create new ones if a suitable one doesn't exist, we should abstract the structure of the redux state from components

Avoid creating dispatcher functions that become dependencies of hooks causing them to change every load, try to dispatch actions directly in the hook function.

This work was started in #3807 more more components remain to be migrated to redux hooks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions