yonatanmn/Cartiv

HMR doesn't work in case the store is not the default export

albertmatyi opened this issue · 0 comments

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.