table-state
यह क्या करती है
यह स्किल समझाती है कि signals पर बने Angular ऐप में टेबल की स्थिति, जैसे मौजूदा पेज, कैसे काम करती है। यह उन डेवलपरों के लिए है जिन्हें टेबल और अपने components एक ही मानों पर प्रतिक्रिया देने चाहिए।
कब इस्तेमाल करें
- ✓जब टेम्प्लेट में मौजूदा पेज नंबर या टेबल की कोई और सेटिंग दिखानी हो।
- ✓जब आपको टेबल की पेज सेटिंग को किसी Angular signal से जोड़ना हो।
- ✓जब टेबल बदलने के बाद computed मान या effect अपडेट न हों।
Skill का लिंक
https://github.com/TanStack/table/blob/main/packages/angular-table/skills/table-state/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Angular टेबल का मौजूदा पेज नंबर बटन के लेबल में कैसे दिखाऊँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह दिखाती है कि टेबल की स्थिति को signal में कैसे रखें, उसे टेबल को दें, और callbacks से अपडेट करें, ताकि दोनों तरफ़ मेल रहे।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Load intent load @tanstack/table-core#table-state first for shared ownership, initialization, updater, and reset rules.
Angular-backed atom reads participate in tracking inside templates, computed, and effect. A value captured outside those contexts is only a snapshot. Use computed for derivation or equality control; wrapping an atom is not required to make it reactive.
Controlled signal setup
<!-- skill-snippet:check tsconfig=scripts/skill-snippets-angular.tsconfig.json -->import { Component, signal } from '@angular/core'
import {
injectTable,
rowPaginationFeature,
tableFeatures,
} from '@tanstack/angular-table'
const features = tableFeatures({ rowPaginationFeature })
const columns = [{ accessorKey: 'name' }]
const data = [{ name: 'Ada' }]
@Component({
selector: 'page-status',
template: `<button (click)="table.nextPage()">
Page {{ table.atoms.pagination.get().pageIndex + 1 }}
</button>`,
})
export class PageStatus {
readonly pagination = signal({ pageIndex: 0, pageSize: 20 })
readonly table = injectTable(() => ({
features,
columns,
data,
state: { pagination: this.pagination() },
onPaginationChange: (next) =>
typeof next === 'function'
? this.pagination.update(next)
: this.pagination.set(next),
}))
}
Reactive boundaries
- Construct in Angular injection context. Signal writes used by the initializer rerun it and call
setOptions; hoist features and columns and keep data references stable. - Supply both
state.paginationandonPaginationChangewhen a signal owns the slice. Resolve updater functions with.update(next)instead of storing the function with.set(next). - For shared state, create a stable atom with
@tanstack/angular-storeand pass it throughatoms. Its writes do not need to flow through a controlled signal in the initializer. - Use
table.store.get()for the flat state. Prefertable.atoms.<slice>.get()for narrow tracked reads.
Read for the task
For advanced reactive boundaries, shared atoms, or detailed subscription examples, read reactivity. For construction or rendering setup, read getting-started.
API discovery
Inspect node_modules/@tanstack/angular-table/dist/types/ for the bundled public declarations. Inspect feature APIs under node_modules/@tanstack/table-core/dist/features/.
अक्सर पूछे जाने वाले सवाल
क्या किसी मान को reactive बनाने के लिए हमेशा कोई खास helper चाहिए?
नहीं। स्किल कहती है कि मान को reactive बनाने के लिए helper में लपेटना ज़रूरी नहीं है।
कॉपी किया गया मान अपडेट क्यों नहीं होता?
टेम्प्लेट, computed या effect के बाहर पढ़ा गया मान सिर्फ़ एक स्नैपशॉट होता है, इसलिए वह अपने-आप ताज़ा नहीं होता।
टेबल कहाँ बनाई जानी चाहिए?
टेबल injectTable से बनती है, जो Angular injection context में चलना चाहिए।
जानकारी
लेखक का मूल विवरण
Read and control Table v9 state in angular. Use for tracked reads, subscriptions, controlled slices, and framework-specific reactive boundaries.
repo: TanStack/table
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9810
- लाइसेंस
- MIT
- अपडेट की गई
- 21/10/2026
कमेंट
- …
इस repository की और skills
getting-started
29kयह आपके एजेंट को Alpine.js में TanStack Table से डेटा टेबल बनाना और दिखाना सिखाती है, जिसमें सेटअप, रिएक्टिव डेटा और पंक्तियाँ दिखाना शामिल है।
table-state
29kयह आपके एजेंट को Alpine.js में टेबल की स्थिति, जैसे मौजूदा पेज, पढ़ना और नियंत्रित करना सिखाती है, ताकि वह स्थिति बदलने पर स्क्रीन अपडेट हो।
devtools
29kयह आपके एजेंट को Angular टेबल को TanStack Devtools पैनल में रजिस्टर करना सिखाती है, ताकि डेवलपर ऐप बनाते समय हर टेबल की जांच कर सकें।
getting-started
29kयह आपके एजेंट को Angular में TanStack टेबल बनाना और दिखाना सिखाती है, जिसमें injectTable सेटअप, टेम्प्लेट रेंडरिंग और पंक्ति डेटा के अपडेट शामिल हैं।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।