React: Unmount event listener from server
<p>In my app.js I am mounting event listeners. After several reloads I am getting "warning: possible EventEmitter memory leak detected. 11 change listeners added".</p>

<p>My code is like so.</p>

<pre><code>  let App = React.createClass({

     componentWillMount() {
       ArticleStore.addChangeListener((e) =&gt; this.onArticleChange(e));
     },

     componentWillUnmount() {
       ArticleStore.removeChangeListener(e);
     }

   }
</code></pre>

<p>However, componentWillUnmount never gets called in app.js because it exists on the server and I end up with a lot of event listeners open causing the above error and maxing out my event listener limit. </p>

<p>How can I unmount any event listeners in my app.js? </p>