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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: failed eslint checks (#1616)
João Nuno Mota3314fe8b0e7f
diff --git a/web/src/hooks/useEvent.ts b/web/src/hooks/useEvent.tsindex 8b218d472..3e9af77d7 100644--- a/web/src/hooks/useEvent.ts+++ b/web/src/hooks/useEvent.ts@@ -15,11 +15,9 @@ function useLatestValue<T>(value: T) {}// TODO: Add React.useEvent ?? once the useEvent hook is available-function useEvent<F extends (...args: any[]) => any, P extends any[] = Parameters<F>, R = ReturnType<F>>(- cb: (...args: P) => R-) {+function useEvent<F extends (...args: any[]) => any, P extends any[] = Parameters<F>, R = ReturnType<F>>(cb: (...args: P) => R) {const cache = useLatestValue(cb);return React.useCallback((...args: P) => cache.current(...args), [cache]);-};+}export default useEvent;