Repository navigation
v0.5.74
Upgrading
- A host that re-shares the kit's props in its browser test case after pest-plugin-browser's flush (a
BrowserCaseworkaround) can drop that re-share: the kit puts its props back on every web request.
Fixed
- The kit's Inertia props survive
Inertia::flushShared().kitUi,kitToasts,shell,environment,kitPasswordandpasskeyOfferwere shared once at provider boot, so anything that flushed Inertia's shared props afterwards dropped them: pest-plugin-browser flushes before each request, so a host's browser tests rendered blank pages, and an Octane-style reset or a host's own flush would too. core and session-ui now hand their closures toKitShares, which shares them at boot and again at the start of every web request inPrepareKitRequest. They stay lazy closures, one producer each (shellstays session-ui's PageShell). The host still wins:PrepareKitRequestruns last inweb, after the host's ownHandleInertiaRequests, and puts back only the keys Inertia's factory doesn't already hold, so a key the host shares (in its middleware, or on the factory before the request) is never overwritten. The kit still never flushes.test:inertia-sharesandtest:request-hooks(through the real HTTP kernel) flush between requests and check every kit prop, the host's ownshellandenvironment, and two people in turn.
What's Changed
- Restore the kit's Inertia shares after a flush, host shares still winning (0.5.x) by @jaspertey in #380
Full Changelog: v0.5.73...v0.5.74