Skip to content

Commit cdfa799

Browse files
committed
use unfrozen empty array
1 parent 0621526 commit cdfa799

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Effect, ReactDispatcher } from "./internal";
2020

2121
export { signal, computed, batch, effect, Signal, type ReadonlySignal };
2222

23-
const Empty = Object.freeze([]);
23+
const Empty = [] as const;
2424

2525
/**
2626
* React uses a different entry-point depending on NODE_ENV env var
@@ -92,7 +92,6 @@ function createEffectStore() {
9292
updater = this;
9393
});
9494

95-
9695
updater._callback = function () {
9796
if (!onChangeNotifyReact) {
9897
/**

0 commit comments

Comments
 (0)