Skip to content

[BUG] useSelect selectProps.value does not contain the value? #7121

@neviovalsangiacomo

Description

@neviovalsangiacomo

Describe the bug

Pseudo code

const { selectProps } = useSelect({resource: 'users'})

useEffect(() => {
console.log(selectProps.value);
, [selectProps.value])
return <Select {...selectProps} />

I would expect the useEffect to run everytime I select a new value with the the select item

Steps To Reproduce

Check psudo code above

Expected behavior

value should contain the value

Packages

"@refinedev/antd": "^5.44.0",

Additional Context

No response

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