HMR doesn't work in case the store is not the default export
albertmatyi opened this issue · 0 comments
albertmatyi commented
In the case below
export const ResizeStore = createStore(....);
if (typeof module !== 'undefined') {
createStore.allowHMR(module, ResizeStore);
}
allowHMR
doesn't have any effect and breaks HMR.