Skip to content

"possible EventEmitter memory leak" when using too many links #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eldh opened this issue Aug 22, 2014 · 1 comment
Closed

"possible EventEmitter memory leak" when using too many links #220

eldh opened this issue Aug 22, 2014 · 1 comment

Comments

@eldh
Copy link

eldh commented Aug 22, 2014

When I use more than ten Links on tha same page, I get the error "warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. ".

Is this to be expected or am I doing something wrong? It seems that the ActiveState mixin adds the handlers and I can't figure out a way of getting around the error other than using emitter.setMaxListeners() to something high, but it seems weird to me that I should have to do that.

This simple component produces this issue for me

React = require 'react/addons'
Link = require 'react-router/Link'
module.exports = React.createClass
    render: ->
        React.DOM.div {},
            for i in [1...20]
                Link {to:'forecast'}, i
@eldh
Copy link
Author

eldh commented Aug 25, 2014

Closed by #222.

@eldh eldh closed this as completed Aug 25, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant