feat: project list
This commit is contained in:
10
apps/web/src/hooks/useAsyncEffect.ts
Normal file
10
apps/web/src/hooks/useAsyncEffect.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
export function useAsyncEffect(
|
||||
effect: () => Promise<void>,
|
||||
deps: React.DependencyList,
|
||||
) {
|
||||
useEffect(() => {
|
||||
effect();
|
||||
}, [...deps]);
|
||||
}
|
||||
Reference in New Issue
Block a user