Inertia
Inertia glues a server framework such as Laravel or Rails to React, Vue or Svelte pages without a separate API. Interviewers probe where routing, props and state belong on each side.
on this pageshowhide
explore
- Page Objects & Headers6 questions
- Shared & Deferred Props5 questions
- Links & Manual Visits6 questions
- Form Helper & Error Props6 questions
- SSR & Stale-Asset Reloads5 questions
- Client Adapters & Layouts5 questions
questions
page 2 of 2How does Inertia 3 split page components into separate chunks, and when would you set pages.lazy to false instead?
level: seniorimportance: nice to knowfreq 22%
basics
~20 sBy default Inertia 3 lazy-loads page components, so Vite builds one chunk per page that downloads on its first visit; setting pages.lazy to false, or import.meta.glob with eager: true, bundles every page up front, trading a bigger first download for no per-page fetches.
How does Inertia 3's built-in Precognition give a customer form live validation with validate() and invalid(), and what must the Laravel route provide?
level: seniorimportance: nice to knowfreq 22%
basics
~20 sPrecognition sends the form to its real route with a Precognition header; Laravel's precognitive middleware runs validation from the route's form request but not the controller, answering 204 or 422, and useForm's validate() and invalid() show the result per field.
showing 31–33 of 33