Skip to content

Commit ced0657

Browse files
KyleAMathewsclaude
andauthored
Add comprehensive error handling documentation and improve collection auto-restart behavior (#285)
Co-authored-by: Claude <[email protected]>
1 parent bb85522 commit ced0657

File tree

6 files changed

+551
-17
lines changed

6 files changed

+551
-17
lines changed

.changeset/breezy-islands-carry.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@tanstack/db": patch
3+
---
4+
5+
Automatically restart collections from cleaned-up state when operations are called
6+
7+
Collections in a `cleaned-up` state now automatically restart when operations like `insert()`, `update()`, or `delete()` are called on them. This matches the behavior of other collection access patterns and provides a better developer experience by avoiding unnecessary errors.

docs/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
{
5151
"label": "Guides",
5252
"children": [
53+
{
54+
"label": "Error Handling",
55+
"to": "error-handling"
56+
},
5357
{
5458
"label": "Creating Collection Options Creators",
5559
"to": "collection-options-creator"

0 commit comments

Comments
 (0)