You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// config/inertia.tsimport{defineConfig}from'@adonisjs/inertia'importtype{InferSharedProps}from'@adonisjs/inertia/types'constinertiaConfig=defineConfig({/** * Path to the Edge view that will be used as the root view for Inertia responses */rootView: 'inertia_layout',/** * Data that should be shared with all rendered pages */sharedData: {errors: (ctx)=>ctx.session?.flashMessages.get('errors'),},/** * Options for the server-side rendering */ssr: {enabled: false,entrypoint: 'inertia/app/ssr.tsx',},})exportdefaultinertiaConfigdeclare module '@adonisjs/inertia/types'{exportinterfaceSharedPropsextendsInferSharedProps<typeofinertiaConfig>{}}
// this is the content of session.flashMessages{"email": "[email protected]","errorsBag": {"E_INVALID_CREDENTIALS": "Invalid user credentials"}// The `errors` property is missing here, unlike in the case of E_VALIDATION_ERROR.// errors}
Reproduction repo
No response
The text was updated successfully, but these errors were encountered:
Package version
v1.1.0
Describe the bug
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: