GeezerVison is showing github.com — Improve DevTools editing interface (#19774) · react/react@50d9451
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/package.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | "@reach/menu-button": "^0.1.17", | 12 | 12 | "@reach/tooltip": "^0.2.2", | 13 | 13 | "clipboard-js": "^0.3.6", | | 14 | + "json5": "^2.1.3", | 14 | 15 | "local-storage-fallback": "^4.1.1", | 15 | 16 | "lodash.throttle": "^4.1.1", | 16 | 17 | "memoize-one": "^3.1.1", | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/__tests__/__snapshots__/inspectedElementContext-test.js.snap +29-29Lines changed: 29 additions & 29 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP | 2 | 2 |
| 3 | | -exports[`InspectedElementContext display complex values of useDebugValue: DisplayedComplexValue 1`] = ` | 4 | | -{ | 5 | | - "id": 2, | 6 | | - "owners": null, | 7 | | - "context": null, | 8 | | - "hooks": [ | 9 | | - { | 10 | | - "id": null, | 11 | | - "isStateEditable": false, | 12 | | - "name": "DebuggableHook", | 13 | | - "value": { | 14 | | - "foo": 2 | 15 | | - }, | 16 | | - "subHooks": [ | 17 | | - { | 18 | | - "id": 0, | 19 | | - "isStateEditable": true, | 20 | | - "name": "State", | 21 | | - "value": 1, | 22 | | - "subHooks": [] | 23 | | - } | 24 | | - ] | 25 | | - } | 26 | | - ], | 27 | | - "props": {}, | 28 | | - "state": null | 29 | | -} | 30 | | -`; | 31 | | - | 32 | 3 | exports[`InspectedElementContext should dehydrate complex nested values when requested: 1: Initially inspect element 1`] = ` | 33 | 4 | { | 34 | 5 | "id": 2, | @@ -65,6 +36,35 @@ exports[`InspectedElementContext should dehydrate complex nested values when req | 65 | 36 | } | 66 | 37 | `; | 67 | 38 |
| | 39 | +exports[`InspectedElementContext should display complex values of useDebugValue: DisplayedComplexValue 1`] = ` | | 40 | +{ | | 41 | + "id": 2, | | 42 | + "owners": null, | | 43 | + "context": null, | | 44 | + "hooks": [ | | 45 | + { | | 46 | + "id": null, | | 47 | + "isStateEditable": false, | | 48 | + "name": "DebuggableHook", | | 49 | + "value": { | | 50 | + "foo": 2 | | 51 | + }, | | 52 | + "subHooks": [ | | 53 | + { | | 54 | + "id": 0, | | 55 | + "isStateEditable": true, | | 56 | + "name": "State", | | 57 | + "value": 1, | | 58 | + "subHooks": [] | | 59 | + } | | 60 | + ] | | 61 | + } | | 62 | + ], | | 63 | + "props": {}, | | 64 | + "state": null | | 65 | +} | | 66 | +`; | | 67 | + | 68 | 68 | exports[`InspectedElementContext should include updates for nested values that were previously hydrated: 1: Initially inspect element 1`] = ` | 69 | 69 | { | 70 | 70 | "id": 2, | |
|