Cartiv icon indicating copy to clipboard operation
Cartiv copied to clipboard

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

Open albertmatyi opened this issue 7 years ago • 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.

albertmatyi avatar Feb 20 '18 10:02 albertmatyi