Skip to content

React Hooks Reference

Integra provides React Query hooks for seamless workflow state management with automatic caching, polling, and optimistic updates.

Fetch workflow data with automatic polling during verification and publishing states. Polls every 2 seconds during active states.

Fetch parsed contract ABI with infinite cache time for performance.

Boolean hook indicating if workflow is in verifying or publishing state.

Get current step number in workflow progression.

useWorkflowStepCompleted(workflowId, step)

Section titled “useWorkflowStepCompleted(workflowId, step)”

Check if specific workflow step is completed.

Create new workflow with optimistic cache updates.

Save metadata with automatic cache synchronization.

Save UI schema with cache updates.

Skip UI step with default application.

Publish workflow with polling for completion.

Retry failed workflow with cache invalidation.

Delete workflow and remove from cache.

Hooks use hierarchical query keys for efficient cache management and automatic invalidation when mutations occur.