From f19c096e7ca12cd2b5d5d477422910b891b9d133 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Wed, 5 Oct 2022 12:06:03 +1100 Subject: [PATCH] Remove needsClean --- packages/components/src/lib/hooks/useSquiggle.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/src/lib/hooks/useSquiggle.ts b/packages/components/src/lib/hooks/useSquiggle.ts index 86126a8a..089f0367 100644 --- a/packages/components/src/lib/hooks/useSquiggle.ts +++ b/packages/components/src/lib/hooks/useSquiggle.ts @@ -20,7 +20,6 @@ export const useSquiggle = (args: SquiggleArgs) => { const result = useMemo( () => { const project = args.project; - let needsClean = true; project.setSource(sourceName, args.code ?? ""); let includes = args.includes; @@ -33,7 +32,7 @@ export const useSquiggle = (args: SquiggleArgs) => { project.run(sourceName); const result = project.getResult(sourceName); const bindings = project.getBindings(sourceName); - return { result, bindings, sourceName, needsClean }; + return { result, bindings, sourceName }; }, // This complains about executionId not being used inside the function body. // This is on purpose, as executionId simply allows you to run the squiggle