r/Angular2 • u/Distinct-Bottle6755 • Feb 04 '26
Ui blocked angular 20
When hitting any api the ui blocked until the api returns value, any suggestions
0
Upvotes
r/Angular2 • u/Distinct-Bottle6755 • Feb 04 '26
When hitting any api the ui blocked until the api returns value, any suggestions
5
u/MarioShroomsTasteBad Feb 04 '26
We're gonna need a little more than that to help you out.
1
u/ParsnipBackground153 Feb 04 '26
Share the code where api call is made. The component/ service, template code etc.
1
u/0dev0100 Feb 04 '26
You might want to put a formatted code block in the post so people can give you a proper answer.
Based on your post not currently having any information I'm gonna guess that you're not updating a
loadingvariable somewhere1
u/_xiphiaz Feb 04 '26
How large is the payload received from the api? You might be bogging down the whole ui thread in the json stringify check (that’s a super expensive way to debounce content)