reflux/refluxjs

Reflux stores don't play nice with webpack Hot Module Replacement

开放

#385 创建于 2015年7月31日

 (7 条评论) (0 个反应) (0 位负责人)JavaScript (354 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (5,377 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

If have simple application using Reflux and everything works properly. I'm using webpack to build and run everything with HMR support. The react components get hot swapped properly and also the Actions and Stores get hot swapped. The only problem is the 'old' Store is still active and still reacting to the Actions. So every compile that changes something in a Store, you end up with another version of the Store.

Is there something that can be done to fix this?

贡献者指南