Skip to content

Better Typing support when suspense is enabled #1412

Closed
@huozhi

Description

@huozhi

Some restrictions can be applied to swr when suspense is enanbled:

  • key can’t be falsy
  • fetcher can’t be null
  • data can’t be undefined

Note: this is tricky as TypeScript can’t handle inherited configs, and those can be dynamic in the runtime.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions