Skip to content

Commit

Permalink
Merge pull request #50 from invopop/reload_at_build
Browse files Browse the repository at this point in the history
Unwatch state so editor is not re-evaluated after build
  • Loading branch information
beliolfa authored Sep 5, 2023
2 parents 06ac04f + 4167886 commit 9ea067a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/GOBLBuilder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
// When `data` is updated, update the internal envelope store.
// If required instantiate a new envelope object to use.
$: {
state = "init";
goblError.set(null);
try {
let parsedValue = null;
Expand All @@ -79,8 +78,6 @@
$envelope = newEnvelope(parsedValue);
initialEditorData = hash(parsedValue || "");
}
state = $envelope?.sigs ? "signed" : "loaded";
} catch (e) {
console.error("invalid document data: ", e);
$envelope = newEnvelope(null);
Expand Down Expand Up @@ -113,7 +110,7 @@
return;
}
state = "loaded";
state = $envelope?.sigs ? "signed" : "loaded";
};
// Exposed functions to perform the actions from outside
Expand Down

0 comments on commit 9ea067a

Please sign in to comment.