mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 16:52:38 +00:00
feat: renamed old frontend and fixed some minor bugs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Dispatch, SetStateAction, useEffect, useState } from "react";
|
||||
|
||||
// Ref: https://usehooks.com/useDebounce/
|
||||
export const useDebounce = <T extends unknown>(
|
||||
export const useDebounce = <T extends string | number | object>(
|
||||
value: T,
|
||||
delay = 500
|
||||
): [T, Dispatch<SetStateAction<T>>] => {
|
||||
|
||||
Reference in New Issue
Block a user