codeforboston / maple

MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.
https://mapletestimony.org
MIT License
44 stars 118 forks source link

Redux toolkit method deprecated--update to new notation #1487

Closed sashamaryl closed 7 months ago

sashamaryl commented 8 months ago

Describe the bug Warning in console: The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice

This ticket requires a knowledge of redux and redux toolkit, as well as nextjs & react, especially server side rendering and hydration best practices.