angular-cn/packages/common/http/src
JoostK 8e8e89a119 fix(common): prevent repeated application of HttpParams mutations (#29045)
Previously, an instance of HttpParams would retain its list of mutations
after they have been materialized as a result of a read operation. Not
only does this unnecessarily hold onto memory, more importantly does it
introduce a bug where branching of off a materialized instance would
reconsider the set of mutations that had already been applied, resulting
in repeated application of mutations.

This commit fixes the bug by clearing the list of pending mutations
after they have been materialized, such that they will not be considered
once again for branched off instances.

Fixes #20430

PR Close #29045
2019-04-23 08:43:54 -07:00
..
backend.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
client.ts docs(common): update docs for HttpClient methods (#26143) 2019-02-21 20:56:11 -08:00
headers.ts docs: update HttpHeader documentation (#26233) 2019-02-07 16:42:13 -08:00
interceptor.ts docs: incorporate review feedback (#26827) 2019-02-14 19:33:14 +00:00
jsonp.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
module.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
params.ts fix(common): prevent repeated application of HttpParams mutations (#29045) 2019-04-23 08:43:54 -07:00
request.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
response.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
xhr.ts fix(common): expose request url in network error (#27143) 2018-11-27 10:16:22 -08:00
xsrf.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00