Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 19:53
· 7 commits to main since this release

Fixed

  • The Inertia prop is shared on every request, so Octane keeps it. The provider shared
    fancyCompliance once, in boot(). Inertia's ResponseFactory is a singleton, and
    long-lived servers (Octane, an in-process Pest browser server) flush its shared props
    between requests, so from the second request the client got no prop and
    useConsentController threw on undefined.routes. A new middleware,
    FancyCompliance\Http\ShareInertiaProps, now shares it per request and is pushed onto
    the web group. The boot-time share stays for routes outside web on a classic server.
    Nothing to do unless your Inertia pages live outside the web group and you run
    Octane: then add ShareInertiaProps::class to that group. inertia.share and
    inertia.key work as before.