Skip to content

Conversation

cngonzalez
Copy link
Member

@cngonzalez cngonzalez commented Aug 6, 2025

Description

There was some crossed wires / oversight in a few hooks, so passing in a documentHandle with a specific projectId or dataset wouldn't necessarily pull up the correct SanityInstance.

This PR fixes that and adds those hooks to the MultiResourceRoute and an e2e test.

What to review

The actual important changes are in the react package -- it's a 2 line change. The rest is just future-proofing :)

Testing

Added e2e tests/

Fun gif

Copy link

vercel bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sdk-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 6:37pm
sdk-kitchensink-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 6:37pm

@cngonzalez cngonzalez force-pushed the fix/sdk-530/find-correct-instance-for-hooks-that-use-config branch from 3824611 to 3cff168 Compare August 6, 2025 18:35
@cngonzalez cngonzalez marked this pull request as ready for review August 6, 2025 18:39
@cngonzalez cngonzalez requested a review from a team as a code owner August 6, 2025 18:39
@cngonzalez cngonzalez requested a review from ryanbonial August 6, 2025 18:39
Copy link
Member

@ryanbonial ryanbonial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@cngonzalez cngonzalez merged commit 3183c23 into main Aug 14, 2025
19 checks passed
@cngonzalez cngonzalez deleted the fix/sdk-530/find-correct-instance-for-hooks-that-use-config branch August 14, 2025 13:32
@squiggler squiggler bot mentioned this pull request Aug 21, 2025
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