Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

227 B
Raw Blame
import { DependencyList, useEffect } from "react";

const useAsyncEffect = (effect: () => void | Promise<void>, deps?: DependencyList): void => {
  useEffect(() => {
    effect();
  }, deps);
};

export default useAsyncEffect;