Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

syncfusion-react-data-managersyncfusion React 数据 manager

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,137

周安装

46

GitHub Stars

1

下载量

357
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-react-data-manager(syncfusion React 数据 manager)
来源仓库:https://github.com/syncfusion/react-ui-components-skills
仓库路径:skills/syncfusion-react-data-manager
安装命令:
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-data-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-data-manager

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构。
  • 使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • syncfusion-react-data-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Syncfusion React DataManager

The DataManager is a gateway component for managing local and remote data operations in React applications. It acts as an abstraction layer that enables seamless data binding, querying, CRUD operations, caching, and middleware customization without writing complex server communication code.

Use this skill whenever a user needs to:

  • Bind local or remote data sources to UI components
  • Query data (filter, sort, page, group, search)
  • Perform CRUD operations (insert, update, delete, batch edits)
  • Work with different data sources (JSON, OData, REST APIs, GraphQL, etc.)
  • Cache data for performance
  • Implement offline mode
  • Add custom headers or authentication
  • Transform request/response data
  • Handle complex data scenarios in React applications

⚠️ Security & Trust Boundary

  • This skill generates code only, the agent does not execute data operations or fetch remote endpoints — all DataManager interactions occur solely within the user's application at runtime.
  • Generated code must treat all third-party API responses as untrusted input, never bind to unvalidated or user-provided URLs, and ensure authentication is enforced on all remote endpoints.

When to Use DataManager

DataManager is best for:

  • Flexible data management → Works with any data source (local, REST, OData, GraphQL)
  • Complex queries → Filtering, sorting, paging, grouping, searching
  • CRUD operations → With batch support and transaction patterns
  • Middleware customization → Pre/post request hooks
  • Offline support → Cache and sync when connection restored
  • Adaptor switching → Change data sources without code changes

Direct component binding (Grid, Scheduler, etc.) is better when:

  • You only need basic data binding without complex querying
  • Performance is critical for very large datasets
  • You don't need middleware customization

Key Concepts

Data Binding

Connect DataManager to data sources using the json property (local arrays) or url property (remote APIs). Query methods: executeLocal() for local data, executeQuery() for remote data.

Query Class

Build structured queries using the Query class: from(), where(), select(), sortBy(), take(), expand(), group() chained together for powerful data operations.

Adaptors

Adaptors are interfaces that enable DataManager to communicate with different data sources:

  • JsonAdaptor → Local JavaScript arrays
  • ODataAdaptor → OData v3 services
  • ODataV4Adaptor → OData v4 services
  • UrlAdaptor → Generic REST endpoints
  • WebApiAdaptor → ASP.NET Web API
  • RemoteSaveAdaptor → Hybrid client-side queries + server-side CRUD
  • WebMethodAdaptor → Legacy ASP.NET ASMX services
  • GraphQLAdaptor → GraphQL endpoints
  • CustomAdaptor → Custom implementation for proprietary services

CRUD Operations

  • insert() → Add records to data source
  • update() → Modify existing records (keyField as first parameter)
  • remove() → Delete records (keyField as first parameter)
  • saveChanges() → Batch multiple operations into single request

Middleware & Customization

  • applyPreRequestMiddlewares() → Modify request before sending (auth tokens, headers)
  • applyPostRequestMiddlewares() → Transform response before binding (formatting, filtering)
  • Custom adaptors for proprietary APIs
  • Error handlers for request failures

Caching & Performance

  • enableCache → Prevent re-requesting previously loaded pages
  • Offline mode → Store data locally, sync when connection restored
  • Load on demand → Lazy load data as user scrolls (virtual scrolling)
  • Deferred operations → Promise-based async/await patterns

Documentation & Navigation Guide

Choose the reference file based on your current task:

Getting Started Setup

📄 Read: references/getting-started.md

  • Installation steps (npm)
  • Project setup & imports
  • Basic DataManager initialization
  • First query execution
  • Environment setup
  • Common errors & fixes

Data Binding Strategies

📄 Read: references/data-binding.md

  • Local data binding with json property
  • Remote data binding with url property
  • executeLocal() for client-side queries
  • executeQuery() for server requests
  • Switching between data sources
  • Response format handling
  • When to use each approach

Query Operations & Filtering

📄 Read: references/querying-and-filtering.md

  • Query class fundamentals
  • Filtering with where() and Predicate
  • Sorting (ascending/descending)
  • Pagination with take() and skip()
  • Field projection with select()
  • Related data loading with expand()
  • Grouping data by field(s)
  • Complex multi-condition queries
  • Chaining query operations

CRUD Operations & Batch Edits

📄 Read: references/crud-operations.md

  • insert() → Add new records
  • update() → Modify existing records
  • remove() → Delete records
  • keyField in CRUD method parameters
  • saveChanges() for batch operations
  • Batch insert/update/remove
  • Transaction patterns
  • Data validation before operations
  • Response handling

Choosing & Using Adaptors

📄 Read: references/adaptors-guide.md

  • Which adaptor to use (decision tree)
  • JsonAdaptor for local arrays
  • OData adaptors (v3 & v4)
  • REST API adaptors (Url, WebApi)
  • RemoteSaveAdaptor hybrid approach
  • Legacy ASMX (WebMethodAdaptor)
  • GraphQL endpoint integration
  • Custom adaptor implementation
  • CORS & crossDomain configuration
  • Platform-specific response handling

Middleware & Request Customization

📄 Read: references/middleware-customization.md

  • Pre-request middleware for auth tokens
  • Custom header injection
  • Request transformation
  • Post-request middleware for response mapping
  • Error handler functions
  • Data validation & filtering in middleware
  • Custom adaptor implementation
  • Middleware execution order & timing

Caching & Offline Mode

📄 Read: references/caching-offline-mode.md

  • enableCache property for performance
  • When cache clears (sort, filter, CRUD)
  • Offline mode implementation
  • Local storage persistence
  • Sync strategies after reconnection
  • Cache size & memory management
  • Best practices & performance patterns

Advanced Features & Patterns

📄 Read: references/advanced-features.md

  • Load on demand & pagination patterns
  • Virtual scrolling setup
  • Lazy loading data
  • Deferred operations (Promise API)
  • Async/await with DataManager
  • State persistence across sessions
  • Memory management
  • Error handling strategies
  • Performance optimization tips
  • Common pitfalls & solutions

Quick Start Example

import React, { useEffect, useState } from 'react';
import { DataManager, WebApiAdaptor, Query } from '@syncfusion/ej2-data';

export default function DataManagerDemo() {
  const [items, setItems] = useState([]);

  useEffect(() => {
    // Create DataManager with remote data source
    const dataManager = new DataManager({
      url: 'url',
      adaptor: new WebApiAdaptor(),
      crossDomain: true
    });

    // Execute query with filtering, sorting, paging
    dataManager.executeQuery(
      new Query()
        .where('Freight', 'greaterthan', 500) // Filter
        .sortBy('OrderDate') // Sort
        .take(10) // Pagination
    ).then((e) => {
      setItems(e.result); // Bind results
    });
  }, []);

  return (
    <div>
      <h2>Orders</h2>
      <ul>
        {items.map((item) => (
          <li key={item.OrderID}>{item.CustomerID} - ${item.Freight}</li>
        ))}
      </ul>
    </div>
  );
}

Common Use Cases

Case 1: Display local data with filtering → Use JsonAdaptor + Query + where() for client-side filtering

Case 2: Fetch server data with authentication → Use WebApiAdaptor + applyPreRequestMiddlewares() for token injection

Case 3: Work offline, sync later → Use enableCache + offline mode + saveChanges() for batch sync

Case 4: Complex nested data relationships → Use ODataV4Adaptor or RemoteSaveAdaptor + expand() for related data

Case 5: GraphQL backend → Use GraphQLAdaptor with custom query builder

Case 6: Legacy ASP.NET ASMX service → Use WebMethodAdaptor with appropriate response mapping

Key Props & Options

PropertyTypePurpose
jsonArrayLocal JavaScript array of objects
urlstringRemote server endpoint URL
adaptorAdaptorJsonAdaptor, ODataAdaptor, WebApiAdaptor, etc.
enableCachebooleanCache pages to prevent redundant requests
offlinebooleanEnable offline mode with local storage
crossDomainbooleanCORS requests to different domain

Comparison: DataManager vs Direct Binding

FeatureDataManagerDirect Binding
Flexible adaptors✓ Easy switching✗ Fixed to one source
Complex queries✓ Query class with chaining✗ Limited filtering
CRUD operations✓ Full support + batch✗ Basic operations
Middleware✓ Pre/post hooks✗ None
Caching✓ Built-in✗ Manual implementation
Offline mode✓ Built-in✗ Manual implementation
Performance (small datasets)≈ Same✓ Slightly faster
Performance (large datasets)✓ Lazy loading support✗ All at once

Use DataManager when building data-driven applications with flexibility, caching, and middleware needs.

Use direct binding for simple, one-off displays without complex queries or offline support.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

40.86%
按下载量换算146

Claude

28.31%
按下载量换算101

Cursor

18.22%
按下载量换算65

Gemini CLI

8.71%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills