I'm currently using Appwrite's functions.createExecution in my project. I want to avoid double requests when multiple actions (like searching or pagination) are triggered in quick succession.
When using fetch, I usually rely on AbortController with a signal to handle this. However, I'm unsure how to implement a similar approach with functions.createExecution.
Here's an example of the code I’m using:
TypeScript
const result = await functions.createExecution(
"name_function",
undefined,
false,
`/path-to-function`,
ExecutionMethod.GET
);
TL;DR
Issue: Developer using Appwrite's `functions.createExecution` wants to prevent double requests when multiple actions occur in quick succession like searching or pagination.
Solution: To avoid double requests, developers can create a mechanism to track and prevent concurrent executions. One possible approach is to set a flag or use a queue system to manage the execution flow and prevent multiple calls to `functions.createExecution`. This can help ensure that only one request is processed at a time, avoiding duplication of actions.Recommended threads
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...