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

Move actions to redux toolkit's createAction #103

Open
jho406 opened this issue Oct 8, 2024 · 0 comments
Open

Move actions to redux toolkit's createAction #103

jho406 opened this issue Oct 8, 2024 · 0 comments

Comments

@jho406
Copy link
Collaborator

jho406 commented Oct 8, 2024

The generators already create a redux toolkit store, I'd like move superglue/lib/actions.ts to createAction. We don't necessarily need to migrate to createReduceryet, instead we can make use of [match](https://redux-toolkit.js.org/api/createAction#actioncreatormatch] to get a better typescript guard.

We can also clean up how actions get generated with rails superglue:install:web. Its cleaner for superglue users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant