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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions