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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
feature($http): parameter to avoid triggering $apply #14191
PROBLEM: Complex pooling fed screens become unresponsive when they have 4-5 poolers at 2-3 seconds each.
SOLUTION: allow the developer to trigger $apply via $timeout(f(), 0) and allow him to opt out of the $digest cycle on each $http request
PROPOSAL:
$http({...., apply: false}) // by default the $apply will be triggered; if false, it will not be triggered
I can make a PR - just wanted to get in sync with the community, if they reached this problem.
Please mind that I'm forced to consider ReactJS like frameworks due to this limitation.
changed the title [-]feature($http): parameter to avoid triggering $apply on success/fail[/-][+]feature($http): parameter to avoid triggering $apply[/+]on Mar 7, 2016
@Narretz thank you kindly - tried to search before but haven't found the other ticket. I'm glad that this is not new to our community and people are interested in keeping good performance in large angularjs apps.
Activity
[-]feature($http): parameter to avoid triggering $apply on success/fail[/-][+]feature($http): parameter to avoid triggering $apply[/+]lgalfaso commentedon Mar 7, 2016
There are a few hurdles as
$httpuses$qextensively, but if the issues can be solved and the implementation is good, I see no problems.BTW, do you know that there is
$httpProvider#useApplyAsyncthat can partially solve this?Narretz commentedon Mar 7, 2016
Duplicate of #2049
I'd be happy to include this in a future release.
Here's a PR that attempted to do this:
#12557
There's also this issue, which should be considered when implementing this: #13108
dragosrususv commentedon Mar 7, 2016
@Narretz thank you kindly - tried to search before but haven't found the other ticket. I'm glad that this is not new to our community and people are interested in keeping good performance in large angularjs apps.