Skip to content

Point useInfiniteQuery samples at the root export - #14

Merged
Herklos merged 1 commit into
mainfrom
cursor/fix-infinite-query-samples-2eac
Oct 7, 2026
Merged

Herklos merged 1 commit into
mainfrom
cursor/fix-infinite-query-samples-2eac

Conversation

@Herklos

@Herklos Herklos commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

useInfiniteQuery is exported from the package root only. The hooks entry does not re-export it.

The README still imported it from @drakkar.software/anchor/hooks. The todo app example did too, and called useInfiniteQuery(store, options) while reading hasNextPage and fetchNextPage. The hook takes the Supabase client plus a table option and returns hasMore and loadMore.

The README import and the example now match that signature. The example stores module exports supabase so the list passes the same client the stores use. No library behavior change.

The hooks subpath does not re-export useInfiniteQuery. The README still
imported it from there, and the todo app example still called the old
store signature.

Co-authored-by: Herklos <herklos@drakkar.software>

Herklos commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Looks good. README and todo-app samples now import useInfiniteQuery from the root export and use the real client/table/hasMore/loadMore API. Docs-only; CI green on head — ready to merge.

@Herklos Herklos self-assigned this Oct 7, 2026
@Herklos
Herklos merged commit db219e6 into main Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants