Reuse queryOptions, with signal based parameters
I have a query, that takes 3 arguments as its queryKey: name,pageIndex,pageSize.
As per the docs, i created a function inside a service, that returns a queryOptions function. I think however, the issue here is that the keys initial values are comming from the signal. But further value changes are not propegated to the key, making it so, they queryKey never changes (and no refetching happens)
Im almost certain that i have overseen some utility or method to make this work, as i intended - or maybe theres a better and more elegant solution?
customer.service.ts
customer-page.component.ts