本页还没有译文
本页 4 段还没译成Português (BR),下面显示的是英文原文。CollectionStatus
还没翻译译自英文(tanstack.com)本页 4 段都还没译
type CollectionStatus = "idle" | "loading" | "ready" | "error" | "cleaned-up";Defined in: packages/db/src/types.ts:705
Collection status values for lifecycle management
Examples
// Check collection status
if (collection.status === "loading") {
console.log("Collection is loading initial data")
} else if (collection.status === "ready") {
console.log("Collection is ready for use")
}// Status transitions
// idle → loading → ready (when markReady() is called)
// Any active status can transition to → error or cleaned-up
// error → ready after a successful sync recoveryAI 翻译查看英文原文