Inertia.js forms, modals, and SSR
summary
Inertia adds real server-side rendering via a Node background server (ssr.js) that returns full HTML and hydrates in the browser, hitting ~20–100ms on demo pages and supporting authenticated pages; it lets PHP tests assert rendered HTML and capture view warnings. The new dialog flow introduces dialog responses with inertia.dialog and base page route so modals have their own URL, middleware and history, render as DOM siblings, work across pages and server-side rendering via Node SSR.js background process, and the feature is in early access.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:53Form helper overview
- 4:39Server-side rendering intro
- 8:50How SSR works
- 12:24SSR demo and benefits
- 14:53Isomorphic app challenges
- 16:18Client-side hydration
- 17:22SSR testing benefits
- 21:57SSR testing demo
- 22:18Head component for SSR
- 24:43SSR release timeline
- 25:05Dialogues vs modals
- 26:08Problems with current modals
- 30:02Dialogues feature explained
- 31:06Setting up dialogue route
- 33:56Dialogues demo
- 37:05Direct dialogue links
- 40:14Background page rendering
- 41:38Dialogues SSR support
