Articles in category: React

Facile.it engineers Facile.it engineers avatar

3 minute read

This page contains the abstracts of the talks held during the latest Venerdì Protetto on April 14, 2023.

Topics:

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.