Skip to content

Session flash? #2321

@typicode

Description

@typicode

What is the feature you are proposing?

I don't have a strong opinion on this and I'm fine with the way Hono currently works.

However, I'm wondering if something for making flash messages easier would make sense to be in the core? For example, to show a message after a successful POST request and a redirect.

Here are three options that I see:

  1. Create a setFlash and getFlash
  2. Make deleteCookie return the deleted value
  3. No changes and keep Hono core small

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions