releases.shpreview

Sanity React App SDK v2.16.0: Expanded resource support and more resilient data connections

v2.16.0

This release broadens how your app works with resources and makes data handling more dependable. The App SDK can now detect organization resources automatically. A set of fixes improves query recovery, content release handling, and live connection behavior.

Automatic organization resource detection

Pass an organization parameter and the App SDK infers the related organization resources for you. See the App SDK configuration guide for how apps connect to your organization, projects, and datasets.

const MyApp = () => {
  // should "just work" because of inferMediaLibraryAndCanvas below.
  const {data: assetHandles} = useDocuments({
    documentType: 'sanity.asset',
    resourceName: 'media-library',
  })
  
  return (
    <div>
      {assets.map((asset) => (
         <div key={asset._id}>{asset._id}</div>
           ))}
         </div>
      )
    }
  )
}

<SanityApp inferMediaLibraryAndCanvas>
   <MyApp />
</SanityApp>

🐛 Notable bugfixes and improvements

  • The App SDK now recovers queries after fetch, live-connection, and suspense errors.
  • The App SDK now uses the explicit "default" resource when you set one.
  • Content releases now handle missing metadata without failing.
  • Listening to documents now returns all versions.
  • The App SDK no longer retries live event connections that return a 4xx response.

Fetched July 15, 2026