Skip to content

Commit d5de458

Browse files
Fix typo (#21671)
1 parent 232c67e commit d5de458

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

packages/react-devtools-shared/src/backend/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export function patch({
170170
try {
171171
if (shouldShowInlineWarningsAndErrors) {
172172
// patch() is called by two places: (1) the hook and (2) the renderer backend.
173-
// The backend is what impliments a message queue, so it's the only one that injects onErrorOrWarning.
173+
// The backend is what implements a message queue, so it's the only one that injects onErrorOrWarning.
174174
if (typeof onErrorOrWarning === 'function') {
175175
onErrorOrWarning(
176176
current,

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export function getInternalReactConstants(
255255
};
256256
} else if (gte(version, '16.6.0-beta.0')) {
257257
ReactTypeOfWork = {
258-
CacheComponent: -1, // Doens't exist yet
258+
CacheComponent: -1, // Doesn't exist yet
259259
ClassComponent: 1,
260260
ContextConsumer: 9,
261261
ContextProvider: 10,
@@ -285,7 +285,7 @@ export function getInternalReactConstants(
285285
};
286286
} else if (gte(version, '16.4.3-alpha')) {
287287
ReactTypeOfWork = {
288-
CacheComponent: -1, // Doens't exist yet
288+
CacheComponent: -1, // Doesn't exist yet
289289
ClassComponent: 2,
290290
ContextConsumer: 11,
291291
ContextProvider: 12,
@@ -315,7 +315,7 @@ export function getInternalReactConstants(
315315
};
316316
} else {
317317
ReactTypeOfWork = {
318-
CacheComponent: -1, // Doens't exist yet
318+
CacheComponent: -1, // Doesn't exist yet
319319
ClassComponent: 2,
320320
ContextConsumer: 12,
321321
ContextProvider: 13,

packages/react-devtools-shared/src/devtools/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ export default class Store extends EventEmitter<{|
335335
// Update persisted filter preferences stored in localStorage.
336336
saveComponentFilters(value);
337337

338-
// Notify the renderer that filter prefernces have changed.
339-
// This is an expensive opreation; it unmounts and remounts the entire tree,
338+
// Notify the renderer that filter preferences have changed.
339+
// This is an expensive operation; it unmounts and remounts the entire tree,
340340
// so only do it if the set of enabled component filters has changed.
341341
if (haveEnabledFiltersChanged) {
342342
this._bridge.send('updateComponentFilters', value);

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementHooksTree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function HookView({
214214
}
215215

216216
// Certain hooks are not editable at all (as identified by react-debug-tools).
217-
// Primative hook names (e.g. the "State" name for useState) are also never editable.
217+
// Primitive hook names (e.g. the "State" name for useState) are also never editable.
218218
const canRenamePathsAtDepth = depth => isStateEditable && depth > 1;
219219

220220
const isCustomHook = subHooks.length > 0;

packages/react-devtools-shared/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export function installHook(target: any): DevToolsHook | null {
330330
'__REACT_DEVTOOLS_GLOBAL_HOOK__',
331331
({
332332
// This property needs to be configurable for the test environment,
333-
// else we won't be able to delete and recreate it beween tests.
333+
// else we won't be able to delete and recreate it between tests.
334334
configurable: __DEV__,
335335
enumerable: false,
336336
get() {

0 commit comments

Comments
 (0)