npm / @casl/react
@casl/react
What changed in @casl/react 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
4 breaking1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@casl/react 73 changes
Breaking changes 3
Can no longer accepts an ability prop and instead relies on useAbility.
createContextualCan is replaced by an unnamed alternative in the release notes.
useAbility no longer accepts a context parameter.
@casl/react 62 changes
Breaking changes 1
Support for React 17.x is dropped because @casl/react uses the useSyncExternalStore hook.
Fixes and other changes 1
useAbility replaces useState and useEffect with useSyncExternalStore.