You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
Resolvers are run simultaneously and thus, if you are more than one, when calling the verify method from NgHcaptchaService, the second resolver does not complete because the hCaptchaWidgetId variable is already set and the resetHcaptcha method is not called in the first resolver before the second starts (sorry if this is confusing).
The only workaround I found is manually instantiating the service rather than relying on Angular dependency injection mechanism.
Shouldn't the subscriber be completed regardless of the variable state instead ?
The text was updated successfully, but these errors were encountered:
Hi !
Resolvers are run simultaneously and thus, if you are more than one, when calling the
verify
method from NgHcaptchaService, the second resolver does not complete because thehCaptchaWidgetId
variable is already set and theresetHcaptcha
method is not called in the first resolver before the second starts (sorry if this is confusing).The only workaround I found is manually instantiating the service rather than relying on Angular dependency injection mechanism.
Shouldn't the subscriber be completed regardless of the variable state instead ?
The text was updated successfully, but these errors were encountered: