on 2022 Oct 17 12:21 PM
Hi all,
I am triggering the form submit method in the Spartacus method. Problem here is when I clear the cache and cookie in my browser. The very first time the second call happens first and the first call happens as second. even though I put async await in the dispatch event it does not help to resolve my problem.
The problem here is verify address does not return response because its return type void i want the response from this method does any one know how to change it as observable?
<code>verifyAddress(address: Address): void {
if (this.actionAllowed()) {
let userId;
this.userIdService
.getUserId()
.subscribe((occUserId) => (userId = occUserId))
.unsubscribe();
if (userId) {
this.checkoutStore.dispatch(
new CheckoutActions.VerifyAddress({
userId,
address,
})
);
}
}
}
Request clarification before answering.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.