Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default class ErrorBoundary extends Component<Props, State> {
<CaughtErrorView
callStack={callStack}
componentStack={componentStack}
errorMessage={errorMessage || 'Error occured in inspected element'}
errorMessage={errorMessage || 'Error occurred in inspected element'}
info={
<>
React DevTools encountered an error while trying to inspect the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5328,7 +5328,7 @@ export function writeHoistablesForBoundary(
hoistableState.stylesheets.forEach(hasStylesToHoist);

// We don't actually want to flush any hoistables until the boundary is complete so we omit
// any further writing here. This is becuase unlike Resources, Hoistable Elements act more like
// any further writing here. This is because unlike Resources, Hoistable Elements act more like
// regular elements, each rendered element has a unique representation in the DOM. We don't want
// these elements to appear in the DOM early, before the boundary has actually completed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ describe('ReactDOMFizzServerBrowser', () => {
// an exact view boundary. it's not critical to test this edge case but
// since we are setting up a test in general for larger chunks I contrived it
// as such for now. I don't think it needs to be maintained if in the future
// the view sizes change or become dynamic becasue of the use of byobRequest
// the view sizes change or become dynamic because of the use of byobRequest
let stream;
stream = await serverAct(() =>
ReactDOMFizzServer.renderToReadableStream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ describe('ReactDOMServerHydration', () => {
}

// @TODO changes made to sending Fizz errors to client led to the insertion of templates in client rendered
// suspense boundaries. This leaks in this test becuase the client rendered suspense boundary appears like
// suspense boundaries. This leaks in this test because the client rendered suspense boundary appears like
// unhydrated tail nodes and this template is the first match. When we add special case handling for client
// rendered suspense boundaries this test will likely change again
expect(testMismatch(Mismatch)).toMatchInlineSnapshot(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe('ReactDOMImageLoad', () => {
'render start',
'Img b',
'Yield',
// yield is ignored becasue we are sync rendering
// yield is ignored because we are sync rendering
'last layout',
'last passive',
]);
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberCompleteWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ function completeWork(
markUpdate(workInProgress);
}
} else {
// We use the updateHostComponent path becuase it produces
// We use the updateHostComponent path because it produces
// the update queue we need for Hoistables.
updateHostComponent(
current,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ describe('ReactAsyncActions', () => {
'regression: updates in an action passed to React.startTransition are batched ' +
'even if there were no updates before the first await',
async () => {
// Regression for a bug that occured in an older, too-clever-by-half
// Regression for a bug that occurred in an older, too-clever-by-half
// implementation of the isomorphic startTransition API. Now, the
// isomorphic startTransition is literally the composition of every
// reconciler instance's startTransition, so the behavior is less likely
Expand Down