RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/body/hooks/useGetMore.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useGetMore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useGetMore = (rid: string, atBottomRef: MutableRefObject<boolean>) => {
    return {
        innerRef: useCallback(
            (wrapper: HTMLElement | null) => {
                if (!wrapper) {
Severity: Minor
Found in apps/meteor/client/views/room/body/hooks/useGetMore.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status