{"id":2363,"date":"2020-03-03T14:13:15","date_gmt":"2020-03-03T14:13:15","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2363"},"modified":"2020-03-03T14:13:15","modified_gmt":"2020-03-03T14:13:15","slug":"combinelatest-changes-when-upgrading-to-rxjs-6","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2363","title":{"rendered":"combineLatest changes when upgrading to rxjs 6"},"content":{"rendered":"<p>Note that you must now call this as a function rather than a method of another observable, see <strong><a href=\"https:\/\/stackoverflow.com\/questions\/51951200\/error-ts2339-property-combinelatest-does-not-exist-on-type-typeof-observable\">here<\/a><\/strong>.<\/p>\n<p>Also note that as before you can use a projection function to map the results, as an alternative to using .pipe(map&#8230;)). If you are using the projection function, you should not use the spread syntax with the projection as the last argument as this is deprecated. Rather pass the observables as an array, followed by the projection function. More details on the project are <strong><a href=\"https:\/\/stackoverflow.com\/questions\/55092477\/why-do-some-rxjs-6-operators-take-predicates-and-projections-selectors#:~:text=combineLatest%20takes%20as%20an%20optional,type%20of%20the%20returned%20observable.\">here<\/a>,<\/strong> and in the code examples<strong> <a href=\"https:\/\/gist.github.com\/btroncone\/d6cf141d6f2c00dc6b35#combinelatest\">here<\/a>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note that you must now call this as a function rather than a method of another observable, see here. Also note that as before you can use a projection function to map the results, as an alternative to using .pipe(map&#8230;)). If you are using the projection function, you should not use the spread syntax with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[198,224,77],"tags":[],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2363"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2363"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2363\/revisions"}],"predecessor-version":[{"id":2364,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2363\/revisions\/2364"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}