interface QueryCacheConfig {
    onError?: ((error, query) => void);
    onSettled?: ((data, error, query) => void);
    onSuccess?: ((data, query) => void);
}

Properties

onError?: ((error, query) => void)

Type declaration

    • (error, query): void
    • Parameters

      Returns void

onSettled?: ((data, error, query) => void)

Type declaration

    • (data, error, query): void
    • Parameters

      • data: unknown
      • error: unknown
      • query: Query<unknown, unknown, unknown, QueryKey>

      Returns void

onSuccess?: ((data, query) => void)

Type declaration

    • (data, query): void
    • Parameters

      Returns void

Generated using TypeDoc