diff --git a/compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts b/compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts index 52a5a8b8c769..ce507ca673ac 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts @@ -169,7 +169,7 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null { let value: Constant | null = null; for (const [, operand] of phi.operands) { const operandValue = constants.get(operand.identifier.id) ?? null; - // did not find a constant, can't constant propogate + // did not find a constant, can't constant propagate if (operandValue === null) { return null; } @@ -183,7 +183,7 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null { continue; } - // found different kinds of constants, can't constant propogate + // found different kinds of constants, can't constant propagate if (operandValue.kind !== value.kind) { return null; } @@ -195,7 +195,7 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null { loc: GeneratedSource, }); - // different constant values, can't constant propogate + // different constant values, can't constant propagate if (operandValue.value !== value.value) { return null; } @@ -207,7 +207,7 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null { loc: GeneratedSource, }); - // different global values, can't constant propogate + // different global values, can't constant propagate if (operandValue.binding.name !== value.binding.name) { return null; } diff --git a/packages/react-client/src/ReactFlightClient.js b/packages/react-client/src/ReactFlightClient.js index f67d99ba71de..0066ae5fd714 100644 --- a/packages/react-client/src/ReactFlightClient.js +++ b/packages/react-client/src/ReactFlightClient.js @@ -5258,7 +5258,7 @@ export function processStringChunk( // We found the last chunk of the row if (buffer.length > 0) { // If we had a buffer already, it means that this chunk was split up into - // binary chunks preceeding it. + // binary chunks preceding it. throw new Error( 'String chunks need to be passed in their original shape. ' + 'Not split into smaller string chunks. ' + diff --git a/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js b/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js index 44d784788b21..2b4394ec9810 100644 --- a/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js +++ b/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js @@ -595,7 +595,7 @@ describe('ReactSuspenseWithNoopRenderer', () => { ); // Unblock the low-pri text and finish. Nothing in the UI changes because - // the update was overriden + // the update was overridden await act(() => resolveText('2')); assertLog(['2']); expect(ReactNoop).toMatchRenderedOutput( diff --git a/packages/react-server/src/ReactFlightAsyncSequence.js b/packages/react-server/src/ReactFlightAsyncSequence.js index 380e6d9dbafc..d82756befb38 100644 --- a/packages/react-server/src/ReactFlightAsyncSequence.js +++ b/packages/react-server/src/ReactFlightAsyncSequence.js @@ -31,7 +31,7 @@ export type IONode = { end: number, // we typically don't use this. only when there's no promise intermediate. promise: null, // not used on I/O awaited: null, // I/O is only blocked on external. - previous: null | AwaitNode | UnresolvedAwaitNode, // the preceeding await that spawned this new work + previous: null | AwaitNode | UnresolvedAwaitNode, // the preceding await that spawned this new work }; export type PromiseNode = {