Hook to get value and updater for an atom capability. Returns [currentValue, updateFn] similar to useState.
const [settings, updateSettings] = useAtomCapabilityState(CommentCapabilities.Settings); Copy
const [settings, updateSettings] = useAtomCapabilityState(CommentCapabilities.Settings);
Hook to get value and updater for an atom capability. Returns [currentValue, updateFn] similar to useState.