Skip to content

Sanity Studio v7 is coming soon. It loads 30% faster.

This major upgrade brings ~30% faster load times, native CSS view transitions, and some small breaking changes. The majority of upgrades are just a simple bump.

  • Jordan Lawrence

    Jordan Lawrence

    Engineering Manager - Studio

  • Cody Olsen

    Cody Olsen

    Principal Software Engineer

  • John Siciliano

    John Siciliano

    Senior Technical Product Marketing Manager

Published

Next week, on December 8th, we are releasing Sanity Studio v7. This post is to give developers a heads-up and outline some key changes. On the release day, we'll update this post with more details.

The surface you work with is unchanged: schemas, configuration, and content APIs all stay the same. If you're an editor, there's nothing you need to do.

What's changing in v7

First, know that most upgrades will be a simple npm install sanity@latest. While this release does contain breaking changes, which are outlined below, most projects won't run into any issues.

Here's what's changing:

  • Studio is smarter about what code to load (583 KB less on login), making it faster, especially the login screen (2.93s on v6 → 1.98s on v7) and the first load after login (2.71s → 2.11s). The speed is the median of 15 runs on fast 4G.
  • Minimum versions will be bumped to React 19.3.1, Node.js 24.11, styled-components 6.7.0, and Baseline 2026 browsers. For the small fraction of users who use older browsers, we will share a guide on how to support them with polyfills.
  • Studio now requires 19.3.1 and above, allowing us to start using React <ViewTransitions> to drive layout animations that are fully customized with just CSS.
  • A redesigned Vision will be the default.
  • Comments will use the Comments API by default. To keep the comments add-on dataset, set comments: {legacy: true}.
  • React Activity mode will be on by default, so recently used tools stay mounted while you work in another tool and switching back is instant. If a hidden tool misbehaves, such as a <video> or <iframe> that keeps going after you leave, follow React's Activity troubleshooting guide to fix the cleanup if you own the code, or disable it with reactActivityMode: {enabled: false} if it comes from a plugin you can't change.

We are promoting a number of beta APIs

  • Sort orderings
  • The tasks workspace option
  • The useTools hook and the SANITY_VERSION constant
  • The useGrantsStore hook
  • The cross-dataset reference APIs, such as isCrossDatasetReference and CrossDatasetReferenceInput
  • Copy and paste, through CopyPasteProvider and useCopyPaste
  • The form patch APIs, such as set, unset, insert, and PatchEvent
  • The input props type guards, such as isObjectInputProps and isStringInputProps

We are removing deprecated APIs

In addition to the changes above, we are removing the following deprecated APIs in Studio v7:

  • unstable_tasks will be removed. Rename it to tasks, or Studio will throw an error.
  • unstable_comments will be removed. Use comments instead.
  • All internal exports from the public sanity entries. They will live in:
sanity/_dangerously_use_private_internals_that_do_not_follow_semver

Studio v6.17.0 and later already exports this entry. It doesn't follow semver, so any release can change or remove what's in it. Use a public API where one exists; if you still need an internal one, open an issue on sanity-io/sanity to request a public API.

There will be a v6-to-v7 upgrade guide that lists all removed APIs when Studio v7 ships.

How to upgrade

With Studio v7, we'll ship a deterministic codemod and indeterministic agent skill for any parts that need reasoning, along with instructions on how to use them.

The codemod will rename imports, update or remove the affected options, and leave a TODO where your code reads a removed member that has no replacement.

For any remaining items, the agent skill will fix them.

Studios that auto-update won't automatically upgrade to v7 (because this version has breaking changes). You'll upgrade by redeploying.

For plugin authors

If your plugin only uses public Studio APIs, the upgrade is a simple peer dependency bump. If it imports Studio internals, those imports need to move. For example:

useDocumentPane
  from  sanity/structure
  to    sanity/_dangerously_use_private_internals_that_do_not_follow_semver/structure

TextWithTone
  from  sanity
  to    sanity/_dangerously_use_private_internals_that_do_not_follow_semver

Preview
  from  sanity
  to    sanity/_dangerously_use_private_internals_that_do_not_follow_semver/lazy

Upgrade to the latest Studio v6 first and enable a type-aware no-deprecated lint rule (oxlint, Biome, and typescript-eslint all have one). That tells you whether you're ready for v7 or need to refactor. Once there are no no-deprecated findings, set your sanity peer dependency to ^6.27.0 || ^7.0.0-0.

If your plugin is v7-only so it can use React 19.3 features like <ViewTransition>, set the peers to match @sanity/themer: react and react-dom at ^19.3.1, and sanity at ^7.0.0-0.

See Are we v7 yet for the status of Sanity’s plugins.

Yet another major upgrade?

For many of us Studio users, these upgrades are welcome. They're easy to adopt, make something faster and better, and get rid of legacy code.

But others would prefer not to go through the motions of a major upgrade (learning about it, modifying code, making sure it works, etc.). To those, we say that we don't release a major at the slightest opportunity. Rather, we do it because we believe it's worth it.

In the past year, we've released v5 and then v6, which brought, among other things, React 19, smarter search for editors, and Vite 8 (which made builds 4.8× faster).

When there are enough goodies, we want to share them with you. We’ve pushed lazy loading far enough that we feel it’s worth the trade off of a few minor breaking changes. We don’t take these things lightly, but with 30%+ load time reductions, it's time for v7.

Refresh this post on December 8th for more details.