Skip to content

[BUG] use* hooks should allow optional on queryOptions #6748

Open
@pcfreak30

Description

@pcfreak30

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions