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

Upgrade packages and refactor a bit #500

Closed
wants to merge 2 commits into from

Conversation

voinik
Copy link
Contributor

@voinik voinik commented Nov 2, 2022

No description provided.

@@ -6,8 +6,8 @@ import reducer, {State} from './reducer';
export const makeStore = (context: Context) => {
const store = createStore(reducer, applyMiddleware(logger));

if (module.hot) {
module.hot.accept('./reducer', () => {
if ((module as any).hot) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familliar with module.hot; it's showing type errors because that property doesn't exist in there. Is this still used?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, this is the way to hot-swap reducer on client side. This is Webpack's thing.

@kirill-konshin
Copy link
Owner

This PR should be rebased and merged once #502 is in.

@kirill-konshin
Copy link
Owner

@voinik pls consider rebasing this PR on top of recent fixes.

@voinik
Copy link
Contributor Author

voinik commented Dec 29, 2022

@kirill-konshin On it

@voinik voinik closed this Jan 7, 2023
@voinik
Copy link
Contributor Author

voinik commented Jan 7, 2023

@kirill-konshin I've closed this one in favor of another PR: #519

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.

2 participants