Skip to content

Page props stay type-checked when shared props have an optional key

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 08:28
Immutable release. Only release title and notes can be modified.

5.0.6 (2026-11-19)

Bug Fixes

  • types: keep page props checked when shared props have an optional key (#121) (7b49d3d), closes #119

When share() returned an object with an optional key, for example from a conditional spread, inertia.render() stopped checking the page props. A missing required prop or an unknown prop compiled with no error. render() now checks the page props also when a shared prop is optional.

After the upgrade, TypeScript can report errors in render() calls that compiled before. Each one is a prop that the page does not declare, or a required prop that the call does not give.

What's Changed

  • fix(types): keep page props checked when shared props have an optional key by @abu-tahir-0 in #121

Full Changelog: v5.0.5...v5.0.6