Skip to content

Commit

Permalink
Add hacky feature flag to disable change detection to fix production …
Browse files Browse the repository at this point in the history
…issue (#4674)
  • Loading branch information
shinyhappydan authored Jan 18, 2024
1 parent bba26b2 commit 84be090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ object Resources {
for {
state <- stateWhereResourceIsEditable(u)
stateJsonLd <- IO.fromEither(state.toAssembly)
changeDetected = stateJsonLd =!= u.jsonld
changeDetected = sys.env.get("DISABLE_CHANGE_DETECTION").contains("true") || stateJsonLd =!= u.jsonld
event <- if (u.schemaOpt.isDefined || changeDetected) onChange(state) else fallbackToTag(state)
} yield event
}
Expand Down

0 comments on commit 84be090

Please sign in to comment.