useUpdateExistedActions
Mutation hook that updates only the changed fields of an existing action record. Removes tags from existing pending submissions if those tags belong to the n…
Mutation hook that updates only the changed fields of an existing action record. Removes tags from existing pending submissions if those tags belong to the newly selected devices; if the resulting tag list is empty, the submission itself is removed. This avoids duplicate pending actions for the same device.
import { useUpdateExistedActions } from "@tetherto/mdk-react-devkit";Signature
() => { updateExistedActions: ({ actionType, pendingSubmissions, selectedDevices, }: UpdateExistedActionsParams) => void; }| Package | @tetherto/mdk-react-devkit |
useTokenPolling
Periodically calls `POST /auth/token` to refresh the bearer token. On a 401 or 500 response the session is cleared (`authStore.reset()`) and `onSessionEnded`…
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 …