#5215·platform

extendResource breaks toObservable behaviour

Author: joewISTCreated Aug 25, 2026Updated Aug 25, 2026
LabelsNeeds ReproductionProject: Signals

Which @ngrx/* package(s) are the source of the bug?

signals

Minimal reproduction of the bug/regression with instructions

If I declare an rxResource, e.g.

public resource = rxResource({
       defaultValue: null,
        params: () => ({
            id: this.id(),
        }),
        stream: ({ params }) => this._getItem$(params.id),
})

elsewhere in my component, I can subscribe to the resource .value() by passing it into the toObservable() method, e.g.

public resourceObs$ = toObservable(this.resource.value).

This allows me to subscribe to any updates to the value, for which there are some use cases.

However, after upgrading to v22, and putting the same resource in the extendResource method, e.g.

public extendedResource = extendResource(rxResource({
       defaultValue: null,
        params: () => ({
            id: this.id(),
        }),
        stream: ({ params }) => this._getItem$(params.id),
}), withValueOnError(null));

only the first value is emitted in the observable. This is then breaking some of the behaviour on our frontend.

Expected behavior

Any resource (included extended resources) that is passed into toObservable should emit whenever the value changes.

Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)

NgRx v22 Angular v22 Node v24

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No