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-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
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,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
4 changes: 2 additions & 2 deletions packages/shared/CheckStringCoercion.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
*
* The functions in this module will throw an easier-to-understand,
* easier-to-debug exception with a clear errors message message explaining the
* easier-to-debug exception with a clear error message explaining the
* problem. (Instead of a confusing exception thrown inside the implementation
* of the `value` object).
*/
Expand Down Expand Up @@ -63,7 +63,7 @@ function testStringCoercion(value: mixed) {
// To find which value is throwing, check the browser or debugger console.
// Before this exception was thrown, there should be `console.error` output
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
// problem and how that type was used: key, atrribute, input value prop, etc.
// problem and how that type was used: key, attribute, input value prop, etc.
// In most cases, this console output also shows the component and its
// ancestor components where the exception happened.
//
Expand Down