angular-docs-cn/packages/common/http/test
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
..
BUILD.bazel build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
client_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
headers_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
jsonp_mock.ts
jsonp_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
module_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
params_spec.ts fix(common): prevent repeated application of HttpParams mutations (#29045) 2019-04-23 08:43:54 -07:00
request_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
response_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
xhr_mock.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00
xhr_spec.ts fix(common): expose request url in network error (#27143) 2018-11-27 10:16:22 -08:00
xsrf_spec.ts test(ivy): fix paths for http tests to work with ivy (#27121) 2018-11-15 21:18:00 -08:00