diff --git a/packages/editor/README.md b/packages/editor/README.md index 628edfbce427a8..cf79b0e40a321f 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -128,7 +128,13 @@ Example: ### AutosaveMonitor -Undocumented declaration. +AutosaveMonitor component. Monitors the changes made to the edited post and triggers autosave if necessary. + +_Usage_ + +```jsx + +``` ### BlockAlignmentToolbar diff --git a/packages/editor/src/components/autosave-monitor/index.js b/packages/editor/src/components/autosave-monitor/index.js index 33637310ab9483..10cf5196fb77b3 100644 --- a/packages/editor/src/components/autosave-monitor/index.js +++ b/packages/editor/src/components/autosave-monitor/index.js @@ -91,6 +91,15 @@ export class AutosaveMonitor extends Component { } } +/** + * AutosaveMonitor component. + * Monitors the changes made to the edited post and triggers autosave if necessary. + * + * @example + * ```jsx + * + * ``` + */ export default compose( [ withSelect( ( select, ownProps ) => { const { getReferenceByDistinctEdits } = select( coreStore );