Skip to content
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

Prevent double event #130

Closed
DaAwesomeP opened this issue Mar 22, 2016 · 1 comment
Closed

Prevent double event #130

DaAwesomeP opened this issue Mar 22, 2016 · 1 comment

Comments

@DaAwesomeP
Copy link

The module is working perfectly for me except for one part. The auth interceptor is properly triggered when switching between pages. However, some pages make two or three requests, causes two or three login modals to pop up in succession after each other.

I have already fixed this in my own code by simply making a var called loggingIn that when true will prevent more modals from appearing when there is already on open, but I think that something should be built into the module.

All that is needed is a check not to send out more auth-loginRequired events until auth-loginConfirmed is triggered. However, the requests will still need to function as they do now and be rerun when the confirm event is sent.

@dnauck
Copy link

dnauck commented Mar 22, 2016

See also #95 and #120

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

No branches or pull requests

3 participants