Skip to content

fix: refresh layout types when a page module changes - #17232

Open
Nic-Polumeyv wants to merge 2 commits into
write-types-always-regeneratefrom
write-types-refresh-layouts
Open

Nic-Polumeyv wants to merge 2 commits into
write-types-always-regeneratefrom
write-types-refresh-layouts

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Editing a page's load in dev only regenerates that page's types, but its parent layouts depend on it too: a layout load may leave required App.PageData keys to the pages only while every page below it has a load. Until the next full sync the layout keeps the old rule.

write_types now refreshes the ancestor layouts when a page's load export appears or disappears. Proxies are cached by file content across syncs, which is what makes both the check and the refresh cheap.

Stacked on #17231.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from dcf6566:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/dcf656658e2ecc4e01deaf357909dea501a4ca4d

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17232

@changeset-bot

changeset-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dcf6566

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@sveltejs/kit Patch
@sveltejs/adapter-auto Patch
@sveltejs/adapter-bun Patch
@sveltejs/adapter-cloudflare Patch
@sveltejs/adapter-netlify Patch
@sveltejs/adapter-node Patch
@sveltejs/adapter-static Patch
@sveltejs/adapter-vercel Patch
@sveltejs/enhanced-img Patch
@sveltejs/package Patch

Not sure what this means? Click here to learn what changesets are.

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

@svelte-docs-bot

Copy link
Copy Markdown

@Nic-Polumeyv
Nic-Polumeyv force-pushed the write-types-refresh-layouts branch from 5ab2186 to 93165d3 Compare September 26, 2026 18:05
@Nic-Polumeyv
Nic-Polumeyv force-pushed the write-types-always-regenerate branch from 1f6e05c to 8e973e3 Compare October 1, 2026 16:50
@Nic-Polumeyv
Nic-Polumeyv force-pushed the write-types-refresh-layouts branch from 90135bf to dcf6566 Compare October 1, 2026 16:58

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant