webf-infinite-scrolling

Build infinite scrolling lists in WebF environments using WebFListView with React or Vue.

2.5k|163|Updated Jul 19, 2022
One-click install
npx skills add https://github.com/openwebf/webf --skill webf-infinite-scrolling-openwebf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webf-infinite-scrolling
Source: https://github.com/openwebf/webf/tree/main/skills/webf-infinite-scrolling
Command: npx skills add https://github.com/openwebf/webf --skill webf-infinite-scrolling-openwebf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds high-performance infinite scrolling lists in WebF environments using WebFListView. It ensures smooth 60fps scrolling, native pull-to-refresh, and load-more without DOM bloat in long lists.

Core Features & Use Cases

  • Direct-child virtualization: items must be direct children of WebFListView to enable Flutter-level recycling.
  • Pull-to-refresh and infinite scrolling: supports feed-like, catalog, and chat interfaces across React and Vue integrations.
  • Real-world use: build a social feed, product catalog, or chat history with thousands of items while maintaining responsiveness.

Quick Start

  1. Install and integrate WebFListView in your React or Vue project.
  2. Render each list item as a direct child of WebFListView.
  3. Implement onRefresh and onLoadMore handlers and call finishRefresh/finishLoad upon completion, including noMore when appropriate.

Frequently Asked Questions about webf-infinite-scrolling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an infinite scrolling list in WebF without dropping frames?

Build infinite scrolling lists in WebF using WebFListView to ensure smooth 60fps scrolling. It leverages Flutter-level recycling by requiring list items to be direct children, preventing DOM bloat in long feed-style interfaces.

How does WebFListView handle pull-to-refresh and load-more functionality?

WebFListView handles pull-to-refresh and load-more via onRefresh and onLoadMore handlers. You must call finishRefresh or finishLoad callbacks upon data completion, passing a noMore flag when there is no additional data to fetch.

Can I use WebFListView for infinite scrolling with React or Vue?

Yes, WebFListView supports infinite scrolling with both React and Vue integrations. You can build responsive social feeds, product catalogs, or chat histories containing thousands of items while maintaining native-like scrolling performance.

Why do my WebF infinite scrolling lists stutter with thousands of items?

WebF infinite scrolling lists stutter when items are not direct children of WebFListView. Enforcing direct-child virtualization allows Flutter-level recycling, minimizing re-rendering and preventing DOM bloat during long scrolls.

What is the best way to signal no more data when loading a WebF list?

Signal no more data in a WebF list by calling the finishLoad callback with the appropriate noMore parameter. This informs the WebFListView interface that pagination is exhausted and stops further load-more triggers.