Commit Graph

25 Commits

Author SHA1 Message Date
Brian Vaughn 7160f6f584 Fixed owners stack direction and added current element to stack 2019-05-09 18:11:17 -07:00
Brian Vaughn 564a223368 Fetch owners list from renderer (using suspense)
Owners in the list may have been filtered out of the Store, but in the owners list view- it's important to still show them. The frontend cannot do this on its own, so this list needs to come from the renderer interface.
2019-05-09 11:47:22 -07:00
Brian Vaughn 17516b76ae Dim owners that have been filtered from the tree in rendered-by list 2019-05-08 18:23:54 -07:00
Brian Vaughn 703706b40f Add toggle-suspense button to all elements
This button is disabled if the renderer returns canToggleSuspense=false.
2019-05-08 10:50:32 -07:00
Brian Vaughn 17c5feb66a Reorganized types shared between backend and frontend slightly. 2019-05-01 10:45:18 -07:00
Brian Vaughn d53ae2ea8a Refactored TreeContext to use less memoization (based on feedback from Sebastian) 2019-04-22 10:19:59 -07:00
Brian Vaughn 3de18de25e Tried to implement two setState pattern, but it does not feel right 2019-04-22 09:37:55 -07:00
Brian Vaughn 957c389566 Adding polling and initial stab at not serializing duplicate inspected Element props 2019-04-22 09:37:34 -07:00
Brian Vaughn c6b19cc141 Refactored insepected element cache to use the context API 2019-04-22 09:37:34 -07:00
Brian Vaughn 09b023a6e6 Naive suspense implementation for selected element panel
This commit leaves a few major things uunresolved:
* We aren't yet polling for updates
* We aren't yet using the two setState pattern
* The resource cache will grow unbounded over time because we aren't yet clearing items from it
* The renderer interface is not smart enough to avoid resending unchanged data between requests
2019-04-22 09:37:34 -07:00
Lucas Cordeiro 6df050e726 Assign timeoutID to avoid multiple requests 2019-04-18 06:46:06 -03:00
Dan ce335b8975 View DOM button opens Elements tab 2019-04-13 18:59:47 +01:00
Brian Vaughn 58ae3c63a8 Added export-log icon. Removed unnecessary variable assignment. 2019-04-08 11:41:25 -07:00
Dan Abramov 5b120d6b24 Add a separate button for logging values 2019-04-08 18:39:37 +01:00
Dan Abramov c6ee445ea9 Address review 2019-04-08 18:00:48 +01:00
Dan Abramov 39223239bb Select DOM nodes on hover 2019-04-08 17:58:12 +01:00
Dan Abramov edfab66104 Rename "owner stack" label to "rendered by" 2019-04-08 15:40:40 +01:00
Dan b8245de5a1 Nits 2019-04-05 13:19:39 +01:00
Dan Abramov 4f5437edf7 Allow to toggle Suspense in Components pane 2019-04-05 13:19:30 +01:00
Brian Vaughn 64b0fd8ecd Fixed owners header font family too 2019-04-04 13:52:53 -07:00
Brian Vaughn 8c3a97401f Chagned owner div to be actual button 2019-04-04 08:35:25 -07:00
Dan b1c675b8b1 Make owner stack reachable by keyboard 2019-04-04 09:56:37 +01:00
Brian Vaughn f92d2bbf83 Fixed editing props for memo and forwardRef components 2019-04-03 09:29:33 -07:00
Brian Vaughn 6772f2a9e1 Revert fa317be (temporarily show previously selected element props) 2019-04-03 07:52:30 -07:00
Dan Abramov 83bd211c9e Elements -> Components (naming) 2019-04-02 19:58:18 +01:00