From 94071d7ce16c56641d67d488e2bac6be84ffe731 Mon Sep 17 00:00:00 2001
From: 简律纯 <i@jyunko.cn>
Date: Fri, 3 Nov 2023 21:17:06 +0800
Subject: chore: delete useless files

---
 .../packages/acme-utils/src/usePrevious.tsx             | 17 -----------------
 1 file changed, 17 deletions(-)
 delete mode 100644 examples/with-changesets/packages/acme-utils/src/usePrevious.tsx

(limited to 'examples/with-changesets/packages/acme-utils/src/usePrevious.tsx')

diff --git a/examples/with-changesets/packages/acme-utils/src/usePrevious.tsx b/examples/with-changesets/packages/acme-utils/src/usePrevious.tsx
deleted file mode 100644
index 8024464..0000000
--- a/examples/with-changesets/packages/acme-utils/src/usePrevious.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import * as React from "react";
-
-function usePrevious<T>(value: T) {
-  // The ref object is a generic container whose current property is mutable ...
-  // ... and can hold any value, similar to an instance property on a class
-  const ref = React.useRef<T>(value);
-
-  // Store current value in ref
-  React.useEffect(() => {
-    ref.current = value;
-  }, [value]); // Only re-run if value changes
-
-  // Return previous value (happens before update in useEffect above)
-  return ref.current;
-}
-
-export { usePrevious };
-- 
cgit v1.2.3-70-g09d2

