Skip to content

Function: useCannot() ​

ts
function useCannot(permission): Accessor<boolean>;

Defined in: packages/solid/src/context.ts:74

true if the user does NOT have the permission (false while loading).

Parameters ​

ParameterType
permissionstring

Returns ​

Accessor<boolean>

Released under the MIT License. Inspired by spatie/laravel-permission.