File tree 5 files changed +8
-8
lines changed
packages/react-devtools-shared/src 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export function patch({
170
170
try {
171
171
if ( shouldShowInlineWarningsAndErrors ) {
172
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
174
if ( typeof onErrorOrWarning === 'function' ) {
175
175
onErrorOrWarning (
176
176
current ,
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ export function getInternalReactConstants(
255
255
} ;
256
256
} else if ( gte ( version , '16.6.0-beta.0' ) ) {
257
257
ReactTypeOfWork = {
258
- CacheComponent : - 1 , // Doens 't exist yet
258
+ CacheComponent : - 1 , // Doesn 't exist yet
259
259
ClassComponent : 1 ,
260
260
ContextConsumer : 9 ,
261
261
ContextProvider : 10 ,
@@ -285,7 +285,7 @@ export function getInternalReactConstants(
285
285
} ;
286
286
} else if ( gte ( version , '16.4.3-alpha' ) ) {
287
287
ReactTypeOfWork = {
288
- CacheComponent : - 1 , // Doens 't exist yet
288
+ CacheComponent : - 1 , // Doesn 't exist yet
289
289
ClassComponent : 2 ,
290
290
ContextConsumer : 11 ,
291
291
ContextProvider : 12 ,
@@ -315,7 +315,7 @@ export function getInternalReactConstants(
315
315
} ;
316
316
} else {
317
317
ReactTypeOfWork = {
318
- CacheComponent : - 1 , // Doens 't exist yet
318
+ CacheComponent : - 1 , // Doesn 't exist yet
319
319
ClassComponent : 2 ,
320
320
ContextConsumer : 12 ,
321
321
ContextProvider : 13 ,
Original file line number Diff line number Diff line change @@ -335,8 +335,8 @@ export default class Store extends EventEmitter<{|
335
335
// Update persisted filter preferences stored in localStorage.
336
336
saveComponentFilters ( value ) ;
337
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
340
// so only do it if the set of enabled component filters has changed.
341
341
if ( haveEnabledFiltersChanged ) {
342
342
this . _bridge . send ( 'updateComponentFilters' , value ) ;
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ function HookView({
214
214
}
215
215
216
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
218
const canRenamePathsAtDepth = depth => isStateEditable && depth > 1 ;
219
219
220
220
const isCustomHook = subHooks . length > 0 ;
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ export function installHook(target: any): DevToolsHook | null {
330
330
'__REACT_DEVTOOLS_GLOBAL_HOOK__' ,
331
331
( {
332
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
334
configurable : __DEV__ ,
335
335
enumerable : false ,
336
336
get ( ) {
You can’t perform that action at this time.
0 commit comments