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 @@ -2131,7 +2131,7 @@ describe('InspectedElement', () => {
});

// See github.com/facebook/react/issues/21654
it('should support Proxies that dont return an iterator', async () => {
it("should support Proxies that don't return an iterator", async () => {
const Example = () => null;
const proxy = new Proxy(
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4017,7 +4017,7 @@ export function registerSuspenseInstanceRetry(
instance.data !== SUSPENSE_PENDING_START_DATA ||
// The boundary is still in pending status but the document has finished loading
// before we could register the event handler that would have scheduled the retry
// on load so we call teh callback now.
// on load so we call the callback now.
ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING
) {
callback();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export type ResumableState = {
nextFormID: number,
streamingFormat: StreamingFormat,

// We carry the bootstrap intializers in resumable state in case we postpone in the shell
// We carry the bootstrap initializers in resumable state in case we postpone in the shell
// of a prerender. On resume we will reinitialize the bootstrap scripts if necessary.
// If we end up flushing the bootstrap scripts we void these on the resumable state
bootstrapScriptContent?: string | void,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/src/__tests__/ReactLegacyMount-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('ReactMount', () => {
const iFrame = document.createElement('iframe');
document.body.appendChild(iFrame);

// HostSingletons make the warning for document.body unecessary
// HostSingletons make the warning for document.body unnecessary
ReactDOM.render(<div />, iFrame.contentDocument.body);
});

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
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/__tests__/ReactUse-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ describe('ReactUse', () => {

it('async children are recursively unwrapped', async () => {
// This is a Usable of a Usable. `use` would only unwrap a single level, but
// when passed as a child, the reconciler recurisvely unwraps until it
// when passed as a child, the reconciler recursively unwraps until it
// resolves to a non-Usable value.
const thenable = {
then() {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ describe('ReactFlightDOM', () => {
);
});

it('wont serialize thenables that were not already settled by the time an abort happens', async () => {
it("won't serialize thenables that were not already settled by the time an abort happens", async () => {
function App() {
return (
<div>
Expand Down