-
Notifications
You must be signed in to change notification settings - Fork 138
Document dependency array usage for react hooks #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document dependency array usage for react hooks #785
Conversation
Add comprehensive guide on using dependency arrays with useLiveQuery, useLiveInfiniteQuery, and useLiveSuspenseQuery hooks including: - When to use dependency arrays - What happens when dependencies change - Best practices with examples - Comparison to React's useEffect dependencies The API reference already documented the deps parameter, but the main guide lacked this important information for developers.
Add a note in the framework integration section that links to the detailed React adapter documentation for dependency arrays. This helps developers discover this important feature without cluttering the cross-framework guide with React-specific details.
|
Add a reference to the comprehensive Live Queries Guide for developers who need full documentation on query syntax, filtering, joins, aggregations, and other query features. This keeps the React adapter docs focused on React-specific usage.
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
|
Size Change: 0 B Total Size: 79.8 kB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 3.34 kB ℹ️ View Unchanged
|
We hadn't really documented this yet