You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to check for any one of many abilities in a single <Can …> from casl-react? I imagine this could get hairy if the actions differ, so I'm guessing the answer is "no." 😉
For example, it seems like it'd be useful to hide a list entirely if every item in that list cannot be performed by the current ability:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to check for any one of many abilities in a single
<Can …>
fromcasl-react
? I imagine this could get hairy if the actions differ, so I'm guessing the answer is "no." 😉For example, it seems like it'd be useful to hide a list entirely if every item in that list cannot be performed by the current ability:
Beta Was this translation helpful? Give feedback.
All reactions