Fix typo (#21671)
houssemchebeb committed
Jul 15, 2021 at 01:42 UTC
d5de45820ae6beda46c34f8737f1861c85642a65
5 files changed
+8
-8
packages/react-devtools-shared/src/backend/console.js
+1
-1
@@ -170,7 +170,7 @@ export function patch({
170
try {
171
if (shouldShowInlineWarningsAndErrors) {
172
// 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.
174
if (typeof onErrorOrWarning === 'function') {
175
onErrorOrWarning(
176
current,
packages/react-devtools-shared/src/backend/renderer.js
+3
-3
@@ -255,7 +255,7 @@ export function getInternalReactConstants(
255
};
256
} else if (gte(version, '16.6.0-beta.0')) {
257
ReactTypeOfWork = {
258
- CacheComponent: -1, // Doens't exist yet
258
+ CacheComponent: -1, // Doesn't exist yet
259
ClassComponent: 1,
260
ContextConsumer: 9,
261
ContextProvider: 10,
@@ -285,7 +285,7 @@ export function getInternalReactConstants(
285
};
286
} else if (gte(version, '16.4.3-alpha')) {
287
ReactTypeOfWork = {
288
- CacheComponent: -1, // Doens't exist yet
288
+ CacheComponent: -1, // Doesn't exist yet
289
ClassComponent: 2,
290
ContextConsumer: 11,
291
ContextProvider: 12,
@@ -315,7 +315,7 @@ export function getInternalReactConstants(
315
};
316
} else {
317
ReactTypeOfWork = {
318
- CacheComponent: -1, // Doens't exist yet
318
+ CacheComponent: -1, // Doesn't exist yet
319
ClassComponent: 2,
320
ContextConsumer: 12,
321
ContextProvider: 13,
packages/react-devtools-shared/src/devtools/store.js
+2
-2
@@ -335,8 +335,8 @@ export default class Store extends EventEmitter<{|
335
// Update persisted filter preferences stored in localStorage.
336
saveComponentFilters(value);
337
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,
340
// so only do it if the set of enabled component filters has changed.
341
if (haveEnabledFiltersChanged) {
342
this._bridge.send('updateComponentFilters', value);
packages/react-devtools-shared/src/devtools/views/Components/InspectedElementHooksTree.js
+1
-1
@@ -214,7 +214,7 @@ function HookView({
214
}
215
216
// 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.
218
const canRenamePathsAtDepth = depth => isStateEditable && depth > 1;
219
220
const isCustomHook = subHooks.length > 0;
packages/react-devtools-shared/src/hook.js
+1
-1
@@ -330,7 +330,7 @@ export function installHook(target: any): DevToolsHook | null {
330
'__REACT_DEVTOOLS_GLOBAL_HOOK__',
331
({
332
// 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.
334
configurable: __DEV__,
335
enumerable: false,
336
get() {