
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
- Website shows just the HTML in safari
Hi y'all, I've been working on a project for a while but, for some reason it just shows the html in safari, It work perfectly fine in firefox and chrome, but sa...
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Looking for FullStack Developer
I'm looking for FullStack Developer who is passionated about both Frontend and Backend. If you are interested, please DM me. Thanks.
