So I currently use http resource for fetching products with filters, can i use http resource with route resolver and still be reactive to filters?
readonly productsQueryFilters = signal<ProductsQueryFilters>({
pageNumber: 1,
pageSize: 10,
});
readonly filtersReady = signal(false);
getProducts(): HttpResourceRef<PagedProductDto | undefined> {
return httpResource<PagedProductDto>(
() => {
if (!this.filtersReady()) return;
return {
url: '',
params: new SafeHttpParams({
fromObject: this.productsQueryFilters(),
}),
};
}
);
}