MDK Logo
UI Kitreact-adapterHooks

useVoteOnAction

Casts an approve/reject vote on a pending action via `PUT /auth/actions/voting/:id/vote`. Invalidates the pool/miner/actions caches on success so the review …

Casts an approve/reject vote on a pending action via `PUT /auth/actions/voting/:id/vote`. Invalidates the pool/miner/actions caches on success so the review tray and dashboard reflect the new state. Gated by `actions:w`.

import { useVoteOnAction } from "@tetherto/mdk-react-adapter";

Signature

() => UseVoteOnActionResult
Package@tetherto/mdk-react-adapter
Requires providerNo