Basic information
About webf-infinite-scrolling
Setup hybrid routing with native screen transitions in WebF - configure navigation using WebF routing instead of SPA routing. Use when setting up navigation, implementing multi-screen apps, or when react-router-dom/vue-router doesn't work as expected.
webf-infinite-scrolling is an agent skill listed in the AddMCP.net directory, published by openwebf. Runtime: C++. License: GPL-3.0. The repository has 2,519 GitHub stars. Source code is hosted on github.com. Related topics: cross-platform, css, dart, desktop-development, flutter.
Overview
What is webf-infinite-scrolling?
name: webf-infinite-scrolling description: Create high-performance infinite scrolling lists with pull-to-refresh and load-more capabilities using WebFListView. Use when building feed-style UIs, product catalogs, chat messages, or any scrollable list that needs optimal performance with large datasets.
WebF Infinite Scrolling
Note: WebF development is nearly identical to web development - you use the same tools (Vite, npm, Vitest), same frameworks (React, Vue, Svelte), and same deployment services (Vercel, Netlify). This skill covers performance optimization for scrolling lists - a WebF-specific pattern that provides native-level performance automatically.
Build high-performance infinite scrolling lists with Flutter-optimized rendering. WebF's WebFListView component automatically handles performance optimizations at the Flutter level, providing smooth 60fps scrolling even with thousands of items.
Why Use WebFListView?
In browsers, long scrolling lists can cause performance issues:
- DOM nodes accumulate (memory consumption)
- Re-renders affect all items (slow updates)
- Intersection observers needed for virtualization
- Complex state management for infinite loading
WebF's solution: WebFListView delegates rendering to Flutter's optimized ListView widget, which:
- ✅ Automatically virtualizes (recycles) views
- ✅ Maintains 60fps scrolling with thousands of items
- ✅ Provides native pull-to-refresh and load-more
- ✅ Zero configuration - optimization happens automatically
Critical Structure Requirement
React Setup
{product.name}
${product.price}
{post.title}
{post.content}
))} ); } ```Vue Setup
{{ product.name }}
${{ product.price }}
Props and Configuration
WebFListView Props
| Prop | Type | Default | Description | |------|------|---------|-------------| | scrollDirection | 'vertical' \| 'horizontal' | 'vertical' | Scroll direction for the list | | shrinkWrap | boolean | true | Whether list should shrink-wrap its contents | | onRefresh / @refresh | () => void \| Promise<void> | - | Pull-to-refresh callback | | onLoadMore / @loadmore | () => void \| Promise<void> | - | Infinite scroll callback (triggered near end) | | className / class | string | - | CSS class names | | style | object | - | Inline styles |
Ref Methods (React) / Element Methods (Vue)
| Method | Signature | Description | |--------|-----------|-------------| | finishRefresh | (result?: 'success' \| 'fail' \| 'noMore') => void | Call after refresh completes | | finishLoad | (result?: 'success' \| 'fail' \| 'noMore') => void | Call after load-more completes | | resetHeader | () => void | Reset refresh header to initial state | | resetFooter | () => void | Reset load-more footer to initial state |
Result Values
'success'- Operation succeeded, more data available'fail'- Operation failed (shows error state)'noMore'- No more data to load (hides footer/shows "no more" message)
Common Patterns
Common Mistakes
Performance Tips
{item.title}
{item.description}
Debugging
Resources
- React Core UI Package:
/Users/andycall/workspace/webf/packages/react-core-ui/README.md - Vue Core UI Package:
/Users/andycall/workspace/webf/packages/vue-core-ui/README.md - Complete Examples: See
examples.mdin this skill - npm Packages:
- https://www.npmjs.com/package/@openwebf/react-core-ui
- https://www.npmjs.com/package/@openwebf/vue-core-ui
Key Takeaways
✅ DO:
- Use
WebFListViewfor long scrolling lists - Make each item a direct child (not wrapped in container)
- Always call
finishLoad/finishRefreshafter operations - Use
'noMore'result when no more data exists - Provide unique, stable keys for list items
- Set explicit height for full-screen lists
❌ DON'T:
- Wrap items in a container div
- Forget to call finish methods (loading indicator gets stuck)
- Use index as key for dynamic lists
- Let operations exceed 4-second timeout
- Use heavy computations in render without memoization
- Expect browser-style virtualization libraries (not needed!)
Quick Reference
Videos
Tutorials, guides, and showcases related to webf-infinite-scrolling. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In