From e938e138260e8fedf7bba7c1aff97930ae1166f3 Mon Sep 17 00:00:00 2001 From: Oliver Pan <2216991777@qq.com> Date: Mon, 24 Jun 2024 00:22:44 -0500 Subject: [PATCH] chore: remove unessessary store initializer --- apps/web/app/color-store-initializer.tsx | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 apps/web/app/color-store-initializer.tsx diff --git a/apps/web/app/color-store-initializer.tsx b/apps/web/app/color-store-initializer.tsx deleted file mode 100644 index 82c2fea..0000000 --- a/apps/web/app/color-store-initializer.tsx +++ /dev/null @@ -1,15 +0,0 @@ -"use client"; - -import { useColorStore } from "@/store/store"; -import { useRef } from "react"; - -function ColorStoreInitializer({ ...props }) { - const initialized = useRef(false); - if (!initialized.current) { - useColorStore.setState(props); - initialized.current = true; - } - return null; -} - -export default ColorStoreInitializer;