Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit eb49a74

Browse files
committed
feat(inspector): format query key, show inactive state
1 parent fab091f commit eb49a74

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
520520
style={{
521521
padding: '.5rem 1rem',
522522
display: 'flex',
523-
alignItems: 'center',
523+
alignItems: 'stretch',
524524
justifyContent: 'space-between',
525525
}}
526526
>
@@ -529,7 +529,14 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
529529
lineHeight: '1.8rem',
530530
}}
531531
>
532-
{activeQuery.queryHash}
532+
<pre
533+
style={{
534+
margin: 0,
535+
padding: 0,
536+
}}
537+
>
538+
{JSON.stringify(activeQuery.queryKey, null, 2)}
539+
</pre>
533540
</Code>
534541
<span
535542
style={{
@@ -539,6 +546,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
539546
textShadow: '0 2px 10px black',
540547
background: getQueryStatusColor(activeQuery, theme),
541548
flexShrink: 0,
549+
opacity: getQueryOpacity(activeQuery),
542550
}}
543551
>
544552
{getQueryStatusLabel(activeQuery)}

0 commit comments

Comments
 (0)