refine icon indicating copy to clipboard operation
refine copied to clipboard

[BUG] use* hooks should allow optional on queryOptions

Open pcfreak30 opened this issue 6 months ago • 4 comments

Describe the bug

A very common situation im running into is queryOptions in useList requires ALL properties even when I only want to override 1 setting.

This should probably wrapped in a Partial type or similar approach. I keep having to @ts-ignore it and its rather annoying.

This probably applies to all helpers around react query too.

Steps To Reproduce

n/a

Expected behavior

can pass partial overrides to queryOptions.

Packages

  • @refinedev/core

Additional Context

I am fine with being assigned this to create a PR as its a small change if the team can provide guidance on how they want to solve this.

pcfreak30 avatar Apr 12 '25 05:04 pcfreak30