File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/src/components/PagedMemoList Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { Button } from "@usememos/mui" ;
22import { ArrowDownIcon , LoaderIcon } from "lucide-react" ;
3- import { useCallback , useEffect , useState } from "react" ;
3+ import { useEffect , useState } from "react" ;
44import PullToRefresh from "react-simple-pull-to-refresh" ;
55import { DEFAULT_LIST_MEMOS_PAGE_SIZE } from "@/helpers/consts" ;
66import useResponsiveWidth from "@/hooks/useResponsiveWidth" ;
@@ -45,11 +45,11 @@ const PagedMemoList = (props: Props) => {
4545 } ) ) ;
4646 } ;
4747
48- const refreshList = useCallback ( async ( ) => {
48+ const refreshList = async ( ) => {
4949 memoList . reset ( ) ;
5050 setState ( ( state ) => ( { ...state , nextPageToken : "" } ) ) ;
5151 fetchMoreMemos ( "" ) ;
52- } , [ props . filter , props . pageSize ] ) ;
52+ } ;
5353
5454 useEffect ( ( ) => {
5555 refreshList ( ) ;
You can’t perform that action at this time.
0 commit comments