Answer the question
In order to leave comments, you need to log in
Why didn't SwitchMap work to cancel the request?
In the component, a request is made to the server via routing:
ngOnInit(): void {
this.route.paramMap
.pipe(
switchMap((params) => {
return this.managerService
.get()
.getVersions(params.get("orderid"));
}),
finalize(() => {
})
)
.subscribe((data) => {
console.log("aa");
});
}
`switchMap((params) => {})
. All requests receive a response.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question