Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70809

Problem with Async request into Angular-Capacitor setup

$
0
0

Hi

I am experiencing problems with the zone on my Angular-Capacitor app. When my app do a server request with httpClient/rxjs like:

this.serviceRequest(stuff).subscribe((data:DataType) =>{
this.doSomeStuff = stuff;
this.updateHTMLvariable = data;
});

The screen lost the focus and, for example when click on a button not respond the first time. I have to touch a second time to works as expected.

If I interact with the screen or minimize and resume the app the buttons works as expected.

Also if inside os subscribe callback calls to open a dialog it opens crashed and when interact with the screen it renders as expected.

Same code launched into a webserver works fine on all cases.

Setup:

Capacitor: 3.3.3
Angular: 12.2.16

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>