What do I use in place of 'createCanBoundTo()' #1017
Replies: 5 comments 1 reply
-
I see the BoundCanProps are still present in Can.ts in 5.0. Trying to figure out how to implment a bound Can using my ability in the application context. Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
It looks like the base Can class component can change its ability subscription after the fact, yet the methods to do so are private. |
Beta Was this translation helpful? Give feedback.
-
I am not well versed in class components as I am in function components; so I might be missing something obvious here. |
Beta Was this translation helpful? Give feedback.
-
I guess it should be stated that I really don't want to create a separate application-wide context just for the Can. |
Beta Was this translation helpful? Give feedback.
-
You need to use this is written in docs. |
Beta Was this translation helpful? Give feedback.
-
REF: in version 5 of '@casl/react' the createCanBoundTo() function was removed
Q: I was using that function to create a Can attached to my application-wide context. How should I proceed given the new paradigm?
Beta Was this translation helpful? Give feedback.
All reactions