Skip to content

usePublish

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/hooks/usePublish.ts

usePublish - Hook for publishing and unpublishing documents

Provides a simple interface for changing document publication state. Requires MAINTAINER or ADMIN role.

Signature

ts
function usePublish(): UsePublishReturn

Returns: UsePublishReturn

Was this page helpful?

Download as PDF