Skip to content

Latest commit

 

History

History
123 lines (82 loc) · 1.41 KB

Function.deferredValueFn.md

File metadata and controls

123 lines (82 loc) · 1.41 KB

clsx-plusDocs


clsx-plus / deferredValueFn

Function: deferredValueFn()

function deferredValueFn<A>(
  config,
  args,
  fn,
  equalityChecker?,
): DeferredValue<A>;

Internal

Creates a new instance of the DeferredValue class.

Type Parameters

Type Parameter

A extends [any, ...any[]]

Parameters

Parameter Type Description

config

ClsxPlusConfig

The configuration object containing the cache and other settings

args

A

The arguments to pass to the calculation function

fn

CalculationFn<A>

The calculation function to call

equalityChecker?

EqualityChecker<CalculationFn<A>>

An optional function to check if the arguments have changed

Returns

DeferredValue<A>

A new instance of the DeferredValue class

Defined in

src/deferred-value.ts:86