mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
126 stars 41 forks source link

Update redux to the latest version and look into @reduxjs/toolkit #2170

Open bobsilverberg opened 2 years ago

bobsilverberg commented 2 years ago

The latest version of redux marks the core redux as deprecated and suggests using reduxjs/toolkit instead. I have taken a look at the latter and it is indeed a great improvement and could allow us to really clean up our reducer code. This isn't something that is necessary to do, but I think it would be worthwhile. I will do some experimentation with converting one of the reducers to see how it goes and it might result in a mini-project to convert all of them.

I am also going to look into RTK Query which looks like a very nice replacement for redux-saga. I'm not sure yet if it will work for SSR, and if it doesn't that will be a blocker for moving to it, but it's something I'm going to look into.

┆Issue is synchronized with this Jira Task

KevinMind commented 5 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDFRNT-92