packages/react/src/hooks/useList.ts
Function useList
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useList = (options: IListUIProps): IList & { actions: any } => {
const optionsRef = useRef<IListUIProps>(options)
const actionsRef = useRef<any>(options.actions)
const listDomain = useContext(ListDomain)
actionsRef.current = actionsRef.current || createListActions()