Skip to content

[BUG] useDeleteButton does not pass meta params to useButtonCanAccess in refine/core #7285

@lohiaad

Description

@lohiaad

Describe the bug

useDeleteButton hook does not pass meta params to useButtonCanAccess

const { title, disabled, hidden, canAccess } = useButtonCanAccess({

Steps To Reproduce

I have a custom rule to validate the permission which fails due to missing meta params.

Expected behavior

useDeleteButton should pass meta params to useButtonCanAccess hook

Packages

refine/core

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