lundi 17 avril 2023

What's the difference between Flux pattern and Mediator pattern?

Is there a difference between the two patterns of flux and mediator? And isn't redux a mediator pattern?

Redux, a representative implementation of the Flux pattern, has a single store in the center that allows components to pass events through action without having to exchange data directly between components, where reducer is used to process events, notify each component of these changes and trigger rendering.

I think Redux is a pattern that uses two types of observer pattern and Mediator pattern.

I think flux pattern is a one-way binding of data from Mediator pattern.

Aucun commentaire:

Enregistrer un commentaire