Skip to content

Commit 21aad24

Browse files
KyleAMathewsclaude
andauthored
fix: correct collection documentation links and add to sidebar (#791)
- Fixed collection links in overview.md to use ../collections/ pattern - Added LocalStorage Collection, LocalOnly Collection, and TrailBase Collection to sidebar Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9f73219 commit 21aad24

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/overview.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Collections can be populated in many ways, including:
6464

6565
- fetching data, for example [from API endpoints using TanStack Query](https://tanstack.com/query/latest)
6666
- syncing data, for example [using a sync engine like ElectricSQL](https://electric-sql.com/)
67-
- storing local data, for example [using localStorage for user preferences and settings](./collections/local-storage-collection.md) or [in-memory client data or UI state](./collections/local-only-collection.md)
67+
- storing local data, for example [using localStorage for user preferences and settings](../collections/local-storage-collection.md) or [in-memory client data or UI state](../collections/local-only-collection.md)
6868
- from live collection queries, creating [derived collections as materialised views](#using-live-queries)
6969

7070
Once you have your data in collections, you can query across them using live queries in your components.
@@ -133,23 +133,23 @@ TanStack DB provides several built-in collection types for different data source
133133

134134
**Fetch Collections**
135135

136-
- **[QueryCollection](./collections/query-collection.md)** &mdash; Load data into collections using TanStack Query for REST APIs and data fetching.
136+
- **[QueryCollection](../collections/query-collection.md)** &mdash; Load data into collections using TanStack Query for REST APIs and data fetching.
137137

138138
**Sync Collections**
139139

140-
- **[ElectricCollection](./collections/electric-collection.md)** &mdash; Sync data into collections from Postgres using ElectricSQL's real-time sync engine.
140+
- **[ElectricCollection](../collections/electric-collection.md)** &mdash; Sync data into collections from Postgres using ElectricSQL's real-time sync engine.
141141

142-
- **[TrailBaseCollection](./collections/trailbase-collection.md)** &mdash; Sync data into collections using TrailBase's self-hosted backend with real-time subscriptions.
142+
- **[TrailBaseCollection](../collections/trailbase-collection.md)** &mdash; Sync data into collections using TrailBase's self-hosted backend with real-time subscriptions.
143143

144-
- **[RxDBCollection](./collections/rxdb-collection.md)** &mdash; Integrate with RxDB for offline-first local persistence with powerful replication and sync capabilities.
144+
- **[RxDBCollection](../collections/rxdb-collection.md)** &mdash; Integrate with RxDB for offline-first local persistence with powerful replication and sync capabilities.
145145

146-
- **[PowerSyncCollection](./collections/powersync-collection.md)** &mdash; Sync with PowerSync's SQLite-based database for offline-first persistence with real-time synchronization with PostgreSQL, MongoDB, and MySQL backends.
146+
- **[PowerSyncCollection](../collections/powersync-collection.md)** &mdash; Sync with PowerSync's SQLite-based database for offline-first persistence with real-time synchronization with PostgreSQL, MongoDB, and MySQL backends.
147147

148148
**Local Collections**
149149

150-
- **[LocalStorageCollection](./collections/local-storage-collection.md)** &mdash; Store small amounts of local-only state that persists across sessions and syncs across browser tabs.
150+
- **[LocalStorageCollection](../collections/local-storage-collection.md)** &mdash; Store small amounts of local-only state that persists across sessions and syncs across browser tabs.
151151

152-
- **[LocalOnlyCollection](./collections/local-only-collection.md)** &mdash; Manage in-memory client data or UI state that doesn't need persistence or cross-tab sync.
152+
- **[LocalOnlyCollection](../collections/local-only-collection.md)** &mdash; Manage in-memory client data or UI state that doesn't need persistence or cross-tab sync.
153153

154154
#### Collection Schemas
155155

0 commit comments

Comments
 (0)