Skip to content

Commit 052e7e9

Browse files
committed
Add Object.freeze()
1 parent 767313e commit 052e7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/createStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function withOptions(options: CreateStoreOptions, initialState?, ...middl
130130
// TODO: [P1] When we redesign the store and chat adapter, we shoulstore.getState().activities
131131
sagaMiddleware.run(createSagas({ ponyfill }));
132132

133-
return store;
133+
return Object.freeze(store);
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)