
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
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- Is it possible to cancel an ongoing file...
When uploading a file to storage, is there a way to cancel the upload in progress so the file is not saved or partially stored?
