nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
290 stars 159 forks source link

Migrate to modern Redux #1711

Open victorlin opened 9 months ago

victorlin commented 9 months ago

Redux was adopted in Auspice many years ago. Since then, Redux has developed new features to simplify usage (e.g. Redux Toolkit, hooks API).

Steps from the migration guide (doesn't have to be followed in order):

jameshadfield commented 9 months ago

Victor & I spoke about this briefly today. Having types flow through is really nice (e.g. #1710) however the work involved in moving from (non-trivial) class-components to hooks shouldn't be underestimated. Changing to createSlice looks to be a similar amount of work, and my intuition is that having a codebase using a mixture of createSlice and our current (and previously recommended) approach will be hard to reason with.