From a22dd81ff3b3f745421af2b9e3724e5fa38faeb8 Mon Sep 17 00:00:00 2001 From: Florian Dendorfer Date: Fri, 15 Mar 2024 16:51:01 +0100 Subject: [PATCH] Fix useMemo error & updating when switch from one to another story directly - useMemo error happened when ?raw imports were loaded with HMR --- src/Panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Panel.tsx b/src/Panel.tsx index 54cad31..1afc37d 100644 --- a/src/Panel.tsx +++ b/src/Panel.tsx @@ -4,7 +4,7 @@ import { CodePanelProps } from './types'; export default function CodePanel({ sourceFiles }: CodePanelProps) { return ( - + {/* Create a tab for each prepared file */} {sourceFiles.map((file, i) => ( // id is used as the key and title as the tab title by TabsState