Začetni commit projekta rezervacije

This commit is contained in:
Mark Poljanšek committed 2025-04-23 20:19:33 +02:00
commit 328731b32f
56062 files changed
+2485242

No files matched your search

+1
View File
@@ -0,0 +1 @@
export { default } from "./usePreviousProps.js";
+1
View File
@@ -0,0 +1 @@
export { default } from "./usePreviousProps.js";
+2
View File
@@ -0,0 +1,2 @@
declare const usePreviousProps: <T>(value: T) => Partial<T>;
export default usePreviousProps;
+11
View File
@@ -0,0 +1,11 @@
'use client';
import * as React from 'react';
const usePreviousProps = value => {
const ref = React.useRef({});
React.useEffect(() => {
ref.current = value;
});
return ref.current;
};
export default usePreviousProps;