• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in React JS by
Q:

What are the downsides of Redux compared to Flux?

1 Answer

0 votes
by

Instead of saying downsides we can say that there are few compromises of using Redux over Flux. Those are as follows:

  1. You will need to learn to avoid mutations: Flux is un-opinionated about mutating data, but Redux doesn't like mutations and many packages complementary to Redux assume you never mutate the state. You can enforce this with dev-only packages like redux-immutable-state-invariant, Immutable.js, or instructing your team to write non-mutating code.
  2. You're going to have to carefully pick your packages: While Flux explicitly doesn't try to solve problems such as undo/redo, persistence, or forms, Redux has extension points such as middleware and store enhancers, and it has spawned a rich ecosystem.
  3. There is no nice Flow integration yet: Flux currently lets you do very impressive static type checks which Redux doesn't support yet.

Related questions

0 votes
asked Jun 19, 2020 in React JS by JackTerrance
  • #reactjs
  • #redux
  • #flux
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Jun 19, 2020 in React JS by JackTerrance
0 votes
asked Mar 3, 2020 in React JS by miceperry
0 votes
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
...