Remove needsClean

This commit is contained in:
Sam Nolan 2022-10-05 12:06:03 +11:00
parent bb6fece694
commit f19c096e7c

View File

@ -20,7 +20,6 @@ export const useSquiggle = (args: SquiggleArgs) => {
const result = useMemo( const result = useMemo(
() => { () => {
const project = args.project; const project = args.project;
let needsClean = true;
project.setSource(sourceName, args.code ?? ""); project.setSource(sourceName, args.code ?? "");
let includes = args.includes; let includes = args.includes;
@ -33,7 +32,7 @@ export const useSquiggle = (args: SquiggleArgs) => {
project.run(sourceName); project.run(sourceName);
const result = project.getResult(sourceName); const result = project.getResult(sourceName);
const bindings = project.getBindings(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 complains about executionId not being used inside the function body.
// This is on purpose, as executionId simply allows you to run the squiggle // This is on purpose, as executionId simply allows you to run the squiggle