Skip to content

Commit 5e3bbab

Browse files
committed
Fix Parsed tab error
Fix error where Parsed tab's code block doesn't update after navigating
1 parent 5723cfc commit 5e3bbab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export const Main: Component = () => {
5757
{error()!.message}
5858
</Message>
5959
</Match>
60-
<Match when={entity()}>
61-
<CodeBlock>{JSON.stringify(entity(), null, 2)}</CodeBlock>
60+
<Match when={entity()} keyed>
61+
{(entity) => <CodeBlock>{JSON.stringify(entity, null, 2)}</CodeBlock>}
6262
</Match>
6363
</Switch>
6464
</Match>

0 commit comments

Comments
 (0)