Skip to content

Use Redux Toolkit in miew-app#636

Open
paulsmirnov wants to merge 3 commits intomainfrom
635-use-redux-toolkit
Open

Use Redux Toolkit in miew-app#636
paulsmirnov wants to merge 3 commits intomainfrom
635-use-redux-toolkit

Conversation

@paulsmirnov
Copy link
Member

@paulsmirnov paulsmirnov commented Feb 10, 2026

Description

Closes #635

This change modernizes the miew-app Redux setup and reduces boilerplate while keeping the existing UI behavior intact. It migrates the store to Redux Toolkit, moves reducers to slices with action re-exports, and updates containers to hooks-based usage.

Type of changes

  • Refactoring (non-breaking change that changes the code without changing behavior)

Checklist

  • I have read CONTRIBUTING and CODE_OF_CONDUCT guides.
  • I have followed the code style of this project.
  • I have run yarn run ci: lint and tests pass locally with my changes.
  • I have added tests that prove my fix/feature works OR The changes do not require updated tests.
  • I have added the necessary documentation OR The changes do not require updated docs.

@paulsmirnov paulsmirnov linked an issue Feb 10, 2026 that may be closed by this pull request
@paulsmirnov paulsmirnov self-assigned this Feb 10, 2026
@paulsmirnov paulsmirnov marked this pull request as ready for review February 10, 2026 22:15
rootReducer,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
);
const store = configureStore({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about moving Redux store creation to a separate file?


const mapStateToProps = () => ({
});
const AboutPanelContainer = (props) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm confused
Could you clarify why does it needed? Looks like a component that simply resends all received props to the only one child

name: 'visiblePanels',
initialState: {},
reducers: {
showNav: (state) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little bit concerned about naming
As I understand it's a "toggle" action, however, name started from "show" looks like more about one way action (not about returning back to hide something)

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

Successfully merging this pull request may close these issues.

Use Redux Toolkit in the app

2 participants