Skip to content

Commit aa02b0b

Browse files
StagingMode: Change default to non-readonly (microsoft#25565)
Defaulting to readonly has proved challenging for prototyping, as it requires quite a bit more setup to use the feature. Given this is an alpha feature, which isn't currently in use, changing the default should present no issues, and should make further feature exploration easier.
1 parent 120eddb commit aa02b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/container-runtime/src/dataStoreContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export abstract class FluidDataStoreContext
282282

283283
private isStagingMode: boolean = false;
284284
public isReadOnly = (): boolean =>
285-
(this.isStagingMode && this.channel?.policies?.readonlyInStagingMode !== false) ||
285+
(this.isStagingMode && this.channel?.policies?.readonlyInStagingMode === true) ||
286286
this.parentContext.isReadOnly();
287287

288288
public get connected(): boolean {

0 commit comments

Comments
 (0)