Articles in category: Typescript

Pier Roberto Lucisano Pier Roberto Lucisano avatar

11 minute read

Introduction

There is inconsistency in the Redux community on how to use actions. Redux Toolkit documentation suggests the following approach:

[…] we recommend trying to treat actions more as “describing events that occurred”, rather than “setters”.

Why should we treat actions as events rather than setters? Dan Abramov, the founder of Redux, said that Redux doesn’t reinvent event sourcing. It’s up to people how to use it. It’s clear that there isn’t a well-accepted approach towards how to use actions.