Skip to main content

Plays

This package contains functions and hooks for fetching, creating, updating, and deleting plays.

Get Plays​

Functions and hooks for fetching plays.

List Plays​

  • getPlays - Fetches plays
  • usePlaysQuery - React hook for fetching plays
  • invalidatePlays - Invalidates the cache for plays

Single Play​

  • getPlay - Fetches a single play
  • usePlayQuery - React hook for fetching a single play
  • invalidatePlay - Invalidates the cache for a single play

Create Play​

  • createPlay - Creates a play
  • useCreatePlayMutation - React hook for creating a play

Update Play​

  • updatePlay - Updates a play
  • useUpdatePlayMutation - React hook for updating a play

Delete Play​

  • deletePlay - Deletes a play
  • useDeletePlayMutation - React hook for deleting a play