|(require koyo/flash)||package: koyo-lib|
This module exposes a component for storing and retrieving flash messages. Flash messages which are set on one page, are available for display on the next and then cleared as soon as the next page is processed. Each message is bound to a specific user session.
(current-flash-manager flashes) → void? flashes : (or/c false/c flash-manager?)
((wrap-flash flashes) handler)
→ (-> request? any/c ... response?) flashes : flash-manager? handler : procedure?
This wrapper must be applied after wrap-session.