Open victorlin opened 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.
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):
configureStore
: eb2c30f353483a8a544bf48cffe2677a6c7b3156createSlice
createAsyncThunk
createListenerMiddleware
connect
to Hooks