Skip to content

Export global mutate or key generation logic #27

@prescottprue

Description

@prescottprue

Currently using the global mutate from SWR (i.e. outside of hook context) requires you to build the key yourself from the prefix path and options

Options

  • Export a type safte global mutate with key logic built in
  • Export key generation logic used in hooks so that key can be created for use in global mutate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions