Skip to content

docs: clarify remote query cache keys#16111

Open
vamshikrishnaramasamy wants to merge 1 commit into
sveltejs:mainfrom
vamshikrishnaramasamy:docs/issue-16029-remote-query-cache-keys
Open

docs: clarify remote query cache keys#16111
vamshikrishnaramasamy wants to merge 1 commit into
sveltejs:mainfrom
vamshikrishnaramasamy:docs/issue-16029-remote-query-cache-keys

Conversation

@vamshikrishnaramasamy

Copy link
Copy Markdown
Contributor

Summary

  • document that schema-backed remote query cache keys use the original argument shape before validation
  • call out extra object properties as cache-key significant for query calls, .set(...), and .refresh()

Closes #16029

Tests

  • pnpm exec prettier --check documentation/docs/20-core-concepts/60-remote-functions.md
  • git diff --check

@changeset-bot

changeset-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8a1e72f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@teemingc teemingc added the documentation Improvements or additions to documentation label Jun 21, 2026
@elliott-with-the-longest-name-on-github

Copy link
Copy Markdown
Contributor

We're currently discussing whether this is the best direction to go in the maintainers' channel -- we might just change it so that this works the same way on the client and on the server. Will get back to you as soon as we've reached a decision.

@vamshikrishnaramasamy

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up. I’ll hold off on further changes here until maintainers settle on the direction. If you decide to make client/server behavior match instead, I’m happy to adjust or close this PR in favor of that implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

query: Normalize cache key using schema to prevent stale reads from extra input properties

3 participants