
I am trying to debounce the update method. Here is the code
TypeScript
reOrderCol() {
const recentColumn = { current: [] };
const update = this.db.updateDocument
const dbId = this.dbId
const boardsId = this.boardsId
async function reOrderColDriver(board_db_id, newOrder) {
debugger
recentColumn.current = newOrder;
setTimeout(async () => {
console.log(update);
if (recentColumn.current.length !== 0) {
console.log("🚀 ~ file: API.js:134 ~ API ~ reOrderCol ~ dbId:", dbId,boardsId)
const res = await update(
dbId,
boardsId,
board_db_id,
{
order: newOrder,
}
);
console.log({ res });
}
}, 200);
}
return reOrderColDriver
}
}
TL;DR
The code is causing a `TypeError` because it is trying to read the property `client` of an undefined object. The `client` property is not present in the code provided. The code is attempting to debounce the `update` method. There is no solution provided in the thread.
I don't see any client
in this code

It's in the update
function?
Recommended threads
- Error while updating documents from Appw...
while trying to update the document in a collection getting Invalid document structure: Unknown attribute: "ids" which is not in the collection. Appreciate the...
- Appwrite MCP is not working in Cursor
I have tried everything, tried to use the "add to cursor" button, then tired to insert the snippet from https://appwrite.io/docs/tooling/mcp/cursor -- this page...
- Need a way to act as user with session s...
**Use case** I'm using Appwrite to add backend features to a puzzle site (Logic Pad). Because the site requires complex validation logic on document creation, ...
