From 672bf4f469eb45b53918695fc8b5d98ce0d32dd9 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 2 Dec 2020 11:41:25 +0100 Subject: [PATCH] docs: update the hocuspocus documentation --- docs/src/docPages/guide/collaborative-editing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docPages/guide/collaborative-editing.md b/docs/src/docPages/guide/collaborative-editing.md index 29ad3b94..90e99c00 100644 --- a/docs/src/docPages/guide/collaborative-editing.md +++ b/docs/src/docPages/guide/collaborative-editing.md @@ -244,7 +244,7 @@ server.listen() ``` ### Send it to an API -To pass the updated documents to an API, or to a database, you can use the `onChange` hook, which is executed when a document changes. With the `debounce` setting you can slow down the execution, with the `debounceMaximum` setting you can make sure the content is sent at least every few seconds: +To pass the updated documents to an API, or to a database, you can use the `onChange` hook, which is executed when a document changes. With the `debounce` setting you can slow down the execution, with the `debounceMaxWait` setting you can make sure the content is sent at least every few seconds: ```js import { Server } from '@hocuspocus/server' @@ -254,7 +254,7 @@ const server = Server.configure({ debounce: 2000, // maximum time to wait (in milliseconds) - debounceMaximum: 10000, + debounceMaxWait: 10000, // executed when the document is changed onChange(data) {