teams list now renders
This commit is contained in:
parent
17c559bdfc
commit
e95b654d7f
81 changed files with 6132 additions and 40 deletions
|
|
@ -15,18 +15,18 @@ export {
|
|||
// useMeasurementsWebsocket,
|
||||
// useMetricAPI,
|
||||
// useMineAPI,
|
||||
// usePermissionAPI,
|
||||
usePermissionAPI,
|
||||
// usePreferenceAPI,
|
||||
// useSecurity,
|
||||
// useSnackbar,
|
||||
useSnackbar,
|
||||
// useTagAPI,
|
||||
// useUsageAPI,
|
||||
// useUserAPI
|
||||
useUserAPI
|
||||
} from "providers";
|
||||
// export * from "./useDebounce";
|
||||
// export * from "./useForceUpdate";
|
||||
// export * from "./useInterval";
|
||||
// export * from "./usePrevious";
|
||||
export * from "./usePrevious";
|
||||
export * from "./useThemeType";
|
||||
export * from "./useWidth";
|
||||
// export * from "./useViewport";
|
||||
9
src/hooks/usePrevious.ts
Normal file
9
src/hooks/usePrevious.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { useEffect, useRef } from "react";
|
||||
|
||||
export const usePrevious = <T extends any>(value: T) => {
|
||||
const ref = useRef<T>();
|
||||
useEffect(() => {
|
||||
ref.current = value;
|
||||
});
|
||||
return ref.current;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue