Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
The Verify Signed Commit Authors check fails, but not because of what this PR changes. A cloud Claude Code session signed commit 6b169af with its own SSH key, which isn't in git fetch origin arv/docs-1.11-query-identity
git checkout arv/docs-1.11-query-identity
git commit --amend --no-edit -S
git push --force-with-lease origin arv/docs-1.11-query-identityGenerated by Claude Code |
Contributor
Author
|
Folded into #325, which has all the 1.11 docs and the release notes in one PR. This commit is there unchanged. Generated by Claude Code |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents query interning from Zero 1.11 (rocicorp/mono#6469, #6496). This is a draft until 1.11 ships.
Changes (
contents/docs/react.mdx)New Query Identity section:
useMemo.Queryobject, including with inlinerelated()orwhereExists()callbacks. So a query can be auseEffectoruseMemodependency, or aReact.memoprop. The section includes an example.queries.x(args)) returns a new object.useQuerystill reuses work for the same query and arguments, but use the arguments as dependencies, not the object.Why it is hedged
Interning is a cache. The code says so in
zql/src/query/query-transitions.tsat rocicorp/mono 22fa3c27e ("Interning is a cache, not a guarantee"). It also stops storing pastMAX_SCAN = 64siblings in one bucket. That bucket limit was hit in a test with 100 live two-hopwhereExistsvariants. Hashing can also make reorderedwherechains converge to one object, so the page says they "can be" different, not that they are.Notes
assets/search-index.jsonis not regenerated, to avoid conflicts with the other 1.11 docs PRs. Regenerate it when merging.Checks
prettier --checkpasses, and the page compiles as MDX.🤖 Generated with Claude Code
https://claude.ai/code/session_01RRckJnCeGsYg9nCJSxBgTJ
Generated by Claude Code