Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to modern Redux #1711

Open
3 of 8 tasks
victorlin opened this issue Oct 12, 2023 · 1 comment
Open
3 of 8 tasks

Migrate to modern Redux #1711

victorlin opened this issue Oct 12, 2023 · 1 comment

Comments

@victorlin
Copy link
Member

victorlin commented Oct 12, 2023

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):

  • Store Setup with configureStore: eb2c30f
  • Reducers and Actions with createSlice
  • Data Fetching with RTK Query
  • Data Fetching with createAsyncThunk
  • Reactive Logic with createListenerMiddleware
  • Migrating TypeScript for Redux Logic: 118ae19
  • Migrating connect to Hooks
  • Migrating TypeScript for Components: 3e77a0a
@victorlin victorlin self-assigned this Oct 12, 2023
@jameshadfield
Copy link
Member

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.

@victorlin victorlin removed their assignment Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants