Skip to main content
Create the Studio per-item revalidation route handler. Studio design-mode edits to loader-backed inputs (e.g. resource pickers) need fresh server loader data for a single item. Re-running it through router.refresh() re-applies the whole RSC tree — and the draft-item query rewrite changes the App Router page segment key, remounting the page and resetting scroll. This handler runs just the edited component’s loader with the unsaved draft settings and returns the payload for an in-place client update (see the 2026-07-02--next-item-revalidation spec). Security: only registered component types are executable, the handler never persists anything, and responses are no-store. Exposure is equivalent to the existing weaverseDraftItem URL param, which already lets any visitor run design-mode loaders with arbitrary draft settings.

Parameters

Returns

WeaverseNextRevalidateHandler