Skip to content
New issue

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

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

Already on GitHub? # to your account

Infinite event loops #981

Open
danecando opened this issue Jan 26, 2016 · 6 comments
Open

Infinite event loops #981

danecando opened this issue Jan 26, 2016 · 6 comments

Comments

@danecando
Copy link

I was a little bit baffled by this issue but I ended up narrowing it down to browser sync. I was using browsersync along with webpack dev/hot middlewares. Randomly, but regularly, trying to capture a click event would trigger an infinite loop. In firefox the event would be triggered without even an initial click to set it off. I don't know much more then this but I've attached a screenshot from my debugger.

Version 2.11.0 - 2.11.1

screen shot 2016-01-25 at 8 16 12 pm 3

@fisher-
Copy link

fisher- commented May 23, 2016

hi, I have the same situation. Capture 'onClick' make function call 1000+ times. When I serve the page without browsersync this problem doesn't exist.

Temporary fix is using 'onMouseDown' instead of 'onClick' but this shouldn't be a final solution.

Version 2.12.3
Checked on chrome, firefox and safari.

@webdif
Copy link

webdif commented May 31, 2016

Same here.
And the @fisher-'s onMouseDown trick does not work for me, either…

@webdif
Copy link

webdif commented Aug 3, 2016

We are the only ones suffering from this issue?
It's a severe bug: I had no choice to abandon browser-sync and use another tool in my workflow just for this… Unfortunately, I have no clue where to search for a bugfix.

@hutber
Copy link

hutber commented Aug 30, 2016

I've got the same bug and just can't get away from it. I have stripped my gulp file to nothing and it will always forward to the baseDir: localhost:3000/

    //gulp.src(assetsSrc).pipe(gulp.dest(assetsPath));
    browserSync({
        open: false,
        server: {
            baseDir: './'
        }
    });

@giovannipds
Copy link

I may be on the same bug. =P

@fvnilo
Copy link

fvnilo commented Jan 6, 2018

I just had this bug and it made me exceed my firebase login attempts quota in seconds. Yay!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants