Skip to content

Commit

Permalink
fix: reset plugin on call
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jul 24, 2024
1 parent ed5c361 commit 3ab6c5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/foreground-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export class ForegroundPlugin {
}

async call<T = any>(funcName: string, input?: string | Uint8Array, hostContext?: T): Promise<PluginOutput | null> {
this.#context[RESET]();

const inputIdx = this.#context[STORE](input);
this.#context[SET_HOST_CONTEXT](hostContext);

Expand Down

0 comments on commit 3ab6c5d

Please sign in to comment.