Prerequisites
Describe the issue
When using CodeView and __devOnlyValidateItemHeights, on page load we see these console errors:
Reproduction
https://stackblitz.com/edit/vitejs-vite-tfbdr1ha?file=src%2FApp.tsx&terminal=dev
import { CodeView } from "@pierre/diffs/react";
import { parseDiffFromFile, type CodeViewDiffItem } from "@pierre/diffs";
const exampleItem: CodeViewDiffItem = {
id: "foo",
type: "diff",
fileDiff: parseDiffFromFile(
{
name: "greeting.ts",
contents: 'export const greeting = "Hello";',
},
{
name: "greeting.ts",
contents: 'export const greeting = "Hello, World!";',
},
),
};
function App() {
return (
<CodeView
items={[exampleItem]}
style={{ height: 600, overflow: "auto" }}
options={{
__devOnlyValidateItemHeights: true,
}}
/>
);
}
export default App;
What browser(s) are you seeing the problem on?
Chrome
What version of @pierre/diffs are you using?
1.2.7
Prerequisites
Describe the issue
When using
CodeViewand__devOnlyValidateItemHeights, on page load we see these console errors:Reproduction
https://stackblitz.com/edit/vitejs-vite-tfbdr1ha?file=src%2FApp.tsx&terminal=dev
What browser(s) are you seeing the problem on?
Chrome
What version of @pierre/diffs are you using?
1.2.7