Skip to content

refactor(core): update resource APIs to stable#68700

Closed
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:refactor/more-stable-resource
Closed

refactor(core): update resource APIs to stable#68700
SkyZeroZx wants to merge 1 commit into
angular:mainfrom
SkyZeroZx:refactor/more-stable-resource

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Marks resource as public APIs following the stabilization of the Resource API in #68253

@pullapprove pullapprove Bot requested a review from atscott May 12, 2026 21:00
@angular-robot angular-robot Bot added the area: common/http Issues related to HTTP and HTTP Client label May 12, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 12, 2026
@SkyZeroZx

Copy link
Copy Markdown
Contributor Author

Q: Should resourceFromSnapshots also be marked as stable, since it is similar to Resource?

/**
* Creates a `Resource` driven by a source of `ResourceSnapshot`s.
*
* @see [Resource composition with snapshots](guide/signals/resource#resource-composition-with-snapshots)
*
* @experimental
*/
export function resourceFromSnapshots<T>(source: () => ResourceSnapshot<T>): Resource<T> {
return new SnapshotResource(isSignal(source) ? source : computed(source));
}

@SkyZeroZx SkyZeroZx changed the title refactor(http): update resource APIs to stable refactor(core): update resource APIs to stable May 12, 2026
Marks `resource` as public APIs following the stabilization of the Resource API in angular#68253
@SkyZeroZx SkyZeroZx force-pushed the refactor/more-stable-resource branch from 8104386 to ad92e09 Compare May 12, 2026 21:02
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label May 12, 2026
@SkyZeroZx SkyZeroZx closed this May 13, 2026
@SkyZeroZx SkyZeroZx deleted the refactor/more-stable-resource branch May 13, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: common/http Issues related to HTTP and HTTP Client area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant