Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Jan 30, 2024

Updated VirtualTable could be seen here: https://nda.ya.ru/t/se1OYEka74Uxro

Ensure that experiment "Use table with data load on scroll for Nodes and Storage cluster tabs" is turned on before reviewing this table

@artemmufazalov artemmufazalov force-pushed the virtual-table-reduce-requests branch 2 times, most recently from 9aec1de to 2f27595 Compare January 30, 2024 16:26
@artemmufazalov artemmufazalov linked an issue Jan 30, 2024 that may be closed by this pull request
@artemmufazalov artemmufazalov marked this pull request as ready for review January 31, 2024 08:53
const [error, setError] = useState<IResponseError>();

const [pendingRequests, setPendingRequests] = useState<Record<string, NodeJS.Timeout>>({});
const pendingRequests = useRef<Record<string, ReturnType<typeof setTimeout>>>({});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to cancel all pendingRequest when component unmounts.

@artemmufazalov artemmufazalov force-pushed the virtual-table-reduce-requests branch from ad483bd to ae08106 Compare February 1, 2024 11:54
@artemmufazalov artemmufazalov merged commit 9a50a34 into main Feb 1, 2024
@artemmufazalov artemmufazalov deleted the virtual-table-reduce-requests branch February 1, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix VirtualTable double initial request

3 participants