github refinedev/refine @refinedev/core@4.38.0

Minor Changes

  • #4906 58d3d605510 Thanks @alicanerdurmaz! - feat: added onUnauthorized callback to <CanAccess /> component. This callback to be called when useCan returns false.

    <CanAccess
        onUnauthorized={({ resource, reason, action, params }) =>
            console.log(
                `You cannot access ${resource}-${params.id} resource with ${action} action because ${reason}`,
            )
        }
    >
        <YourComponent />
    </CanAccess>

Patch Changes

Don't miss a new refine release

NewReleases is sending notifications on new releases.