sailscastshq / boring-stack

Ship JavaScript products with battle-tested technologies in days not weeks.
https://docs.sailscasts.com/boring-stack/getting-started
MIT License
390 stars 19 forks source link

Bug with non-inertia actions not having access to the flash object #84

Closed DominusKelvin closed 6 months ago

DominusKelvin commented 6 months ago

Description

Currently non-inertia pages/actions won't be able to read flash messages ...

Current behavior

When a flash message is shared via req.flash, it is being consumed the inertia middleware even for pages that are non-inertia ...

Expected behavior

Pages and actions that are non-inertia should be able to read from the flash object. ...

Replace space in square bracket with x e.g [x]