Skip to content

Add hooks before and after request #42

@John60676

Description

@John60676

Usage

const request = useRequest(server, {
  onBefore(params) {},
  onAfter(params) {},
})

API

Options

Property Description Type Default
onBefore Hook before request (params: P) => void -
onAfter Hook after request (params: P) => void -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions