Skip to content

consider implementing hooks related to redirect method by making it async #34

Description

@thihathit
  • accept new options:
    • beforeRedirectHooks: Function[]
    • afterRedirectHooks: Function[]
  • expose new methods:
    • addBeforeRedirectHook: Function => remove() // return remove function
    • addAfterRedirectHook: Function => remove()

Goal: ability to overwrite final destination during redirect process

This allows application to define conditional redirects

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions