Skip to content
Open
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
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ export default class Agent extends EventEmitter<{

// Due to the component filters changing, we might be able
// to select a closer match for the currently selected host element.
// The store will already select a suitable parent if the the current
// The store will already select a suitable parent if the current
// selection is now filtered out in which cases this will be a no-op.
const target = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;
if (target != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function getOwnerStackByFiberInDev(
// In a real app it's typically not useful since the root app is always controlled
// by the framework. These also tend to have noisy stacks because they're not rooted
// in a React render but in some imperative bootstrapping code. It could be useful
// if the element was created in module scope. E.g. hoisted. We could add a a single
// if the element was created in module scope. E.g. hoisted. We could add a single
// stack frame for context for example but it doesn't say much if that's a wrapper.
if (owner && debugStack) {
if (typeof debugStack !== 'string') {
Expand Down
6 changes: 3 additions & 3 deletions packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -3686,7 +3686,7 @@ function pushStartHead(
);
} else {
// This <head> is deep and is likely just an error. we emit it inline though.
// Validation should warn that this tag is the the wrong spot.
// Validation should warn that this tag is in the wrong spot.
return pushStartGenericElement(target, props, 'head', formatContext);
}
}
Expand Down Expand Up @@ -3720,7 +3720,7 @@ function pushStartBody(
);
} else {
// This <head> is deep and is likely just an error. we emit it inline though.
// Validation should warn that this tag is the the wrong spot.
// Validation should warn that this tag is in the wrong spot.
return pushStartGenericElement(target, props, 'body', formatContext);
}
}
Expand Down Expand Up @@ -3754,7 +3754,7 @@ function pushStartHtml(
);
} else {
// This <html> is deep and is likely just an error. we emit it inline though.
// Validation should warn that this tag is the the wrong spot.
// Validation should warn that this tag is in the wrong spot.
return pushStartGenericElement(target, props, 'html', formatContext);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberAsyncAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function chainThenableValue<T>(
result: T,
): Thenable<T> {
// Equivalent to: Promise.resolve(thenable).then(() => result), except we can
// cheat a bit since we know that that this thenable is only ever consumed
// cheat a bit since we know that this thenable is only ever consumed
// by React.
//
// We don't technically require promise support on the client yet, hence this
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberComponentStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function getOwnerStackByFiberInDev(workInProgress: Fiber): string {
// In a real app it's typically not useful since the root app is always controlled
// by the framework. These also tend to have noisy stacks because they're not rooted
// in a React render but in some imperative bootstrapping code. It could be useful
// if the element was created in module scope. E.g. hoisted. We could add a a single
// if the element was created in module scope. E.g. hoisted. We could add a single
// stack frame for context for example but it doesn't say much if that's a wrapper.
if (owner && debugStack) {
const formattedStack = formatOwnerStack(debugStack);
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ function rerenderOptimistic<S, A>(
// the passthrough value changed.
//
// So instead of a forked re-render implementation that knows how to handle
// render phase udpates, we can use the same implementation as during a
// render phase updates, we can use the same implementation as during a
// regular mount or update.
const hook = updateWorkInProgressHook();

Expand Down Expand Up @@ -2527,7 +2527,7 @@ function rerenderActionState<S, P>(
// the passthrough value changed.
//
// So instead of a forked re-render implementation that knows how to handle
// render phase udpates, we can use the same implementation as during a
// render phase updates, we can use the same implementation as during a
// regular mount or update.
const stateHook = updateWorkInProgressHook();
const currentStateHook = currentHook;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ export function flushSyncFromReconciler<R>(fn: (() => R) | void): R | void {
}

// If called outside of a render or commit will flush all sync work on all roots
// Returns whether the the call was during a render or not
// Returns whether the call was during a render or not
export function flushSyncWork(): boolean {
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
flushSyncWorkOnAllRoots();
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFizzComponentStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function getOwnerStackByComponentStackNodeInDev(
// In a real app it's typically not useful since the root app is always controlled
// by the framework. These also tend to have noisy stacks because they're not rooted
// in a React render but in some imperative bootstrapping code. It could be useful
// if the element was created in module scope. E.g. hoisted. We could add a a single
// if the element was created in module scope. E.g. hoisted. We could add a single
// stack frame for context for example but it doesn't say much if that's a wrapper.
if (owner && ownerStack) {
info += '\n' + ownerStack;
Expand Down