resource đưa async data vào signal-based code; httpResource là biến thể tích hợp HTTP, tạo resource phản ứng theo params và expose value, hasValue, isLoading, error, status, reload.
Ví dụ HTTP resource:
typescript
const userId = input.required<string>()
const userResource = httpResource<User>(() => `/api/users/${userId()}`)
const userName = computed(() => userResource.value()?.name ?? "Loading")Hai API này vẫn experimental trong docs hiện tại, nên với production enterprise cần đánh giá stability, cancellation, caching/invalidation và bọc abstraction mỏng nếu dùng.