Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

clean: remove unnecessary force re-render code in Variants component

Abi Raja810595e1eb14
diff --git a/frontend/src/components/variants/Variants.tsx b/frontend/src/components/variants/Variants.tsx
index 7bd17420..89649a94 100644
--- a/frontend/src/components/variants/Variants.tsx
+++ b/frontend/src/components/variants/Variants.tsx
@@ -5,15 +5,6 @@ function Variants() {
const { inputMode, head, commits, updateSelectedVariantIndex } =
useProjectStore();
- // TODO: Remove
- // Force a re-render when the variants status changes
- // const [, forceUpdate] = React.useState({});
- // React.useEffect(() => {
- // // Trigger re-render every second to catch status changes
- // const timer = setInterval(() => forceUpdate({}), 1000);
- // return () => clearInterval(timer);
- // }, []);
-
// If there is no head, don't show the variants
if (head === null) {
return null;