Skip to content

Commit

Permalink
Don't revive loading state from storage (#6797)
Browse files Browse the repository at this point in the history
  • Loading branch information
siggisim authored Jun 12, 2024
1 parent b10c62f commit 4318fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enterprise/app/code/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,9 @@ function getOrCreateModel(url: string, value: string) {

// This revives any non-serializable objects in state from their seralized form.
function stateReviver(key: string, value: any) {
if (key == "loading") {
return false;
}
if (typeof value === "object" && value !== null) {
if (value.dataType === "Map") {
return new Map(value.value);
Expand Down

0 comments on commit 4318fea

Please sign in to comment.