Fix Codemirror performance!!

This commit is contained in:
Gregory Schier
2023-03-09 10:50:55 -08:00
parent 4d806ff2b1
commit e4f6c919dc
19 changed files with 848 additions and 211 deletions

View File

@@ -116,8 +116,8 @@ export function ResponsePane({ requestId, className }: Props) {
) : response?.body ? (
<Editor
readOnly
key={`${contentType}:${response.updatedAt}`}
className="bg-gray-50 dark:!bg-gray-100"
valueKey={`${contentType}:${response.updatedAt}`}
defaultValue={response?.body}
contentType={contentType}
/>