Skip to content

Conversation

voinik
Copy link
Contributor

@voinik voinik commented Nov 2, 2022

No description provided.


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