
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
@tanstack/vue-virtual
Advanced tools
@tanstack/vue-virtual is a Vue.js package that provides utilities for efficiently rendering large lists and grids by virtualizing the DOM. This means it only renders the visible items in the viewport, which can significantly improve performance for applications dealing with large datasets.
Virtualized List
This feature allows you to create a virtualized list where only the items visible in the viewport are rendered. This can greatly improve performance when dealing with large lists.
<template>
<VirtualList :items="items" :itemSize="50">
<template #default="{ item, index }">
<div :key="index" class="item">
{{ item }}
</div>
</template>
</VirtualList>
</template>
<script>
import { VirtualList } from '@tanstack/vue-virtual';
export default {
components: { VirtualList },
data() {
return {
items: Array.from({ length: 10000 }, (_, i) => `Item ${i}`)
};
}
};
</script>
Virtualized Grid
This feature allows you to create a virtualized grid where only the cells visible in the viewport are rendered. This is useful for applications that need to display large grids of data.
<template>
<VirtualGrid :items="items" :columnCount="3" :rowHeight="100" :columnWidth="100">
<template #default="{ item, rowIndex, columnIndex }">
<div :key="`${rowIndex}-${columnIndex}`" class="grid-item">
{{ item }}
</div>
</template>
</VirtualGrid>
</template>
<script>
import { VirtualGrid } from '@tanstack/vue-virtual';
export default {
components: { VirtualGrid },
data() {
return {
items: Array.from({ length: 10000 }, (_, i) => `Item ${i}`)
};
}
};
</script>
vue-virtual-scroller is a Vue.js component that provides virtual scrolling for large lists and grids. It is similar to @tanstack/vue-virtual in that it only renders the visible items in the viewport, but it also includes additional features like dynamic size support and built-in support for infinite loading.
react-window is a lightweight library for rendering large lists and grids in React. While it is not a Vue.js library, it offers similar functionality to @tanstack/vue-virtual by virtualizing the DOM to improve performance. It is known for its simplicity and performance.
react-virtualized is another React library for efficiently rendering large lists and grids. It offers a wide range of features including cell measurers, auto-sizers, and more. It is more feature-rich compared to @tanstack/vue-virtual but also more complex to use.
FAQs
Headless UI for virtualizing scrollable elements in Vue
The npm package @tanstack/vue-virtual receives a total of 345,116 weekly downloads. As such, @tanstack/vue-virtual popularity was classified as popular.
We found that @tanstack/vue-virtual demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.