Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Config<T>

Config interface for the Resource

Type parameters

  • T

Hierarchy

  • Config

Index

Properties

Optional cacheName

cacheName: undefined | string

Name of the cache for the resource

fetcher

fetcher: Fetcher<T>

Fetches data

keyFactory

keyFactory: KeyFactory

Procudes key for the cache

Optional revalidateOnVisibility

revalidateOnVisibility: undefined | false | true

If true, revalidates all components that reads from the resource whenever the page becomes visible.

Optional strategy

strategy: ResourceHandler<T>

Strategy for the resource-to-cache handling.

Optional updateOnVisibility

updateOnVisibility: undefined | false | true

If true, re-renders all components that reads from the resource whenever the page becomes visible.

Generated using TypeDoc