Skip to content

API reference > @kontsedal/olas-react > UseValueSelectOptions

UseValueSelectOptions type ​

Options for useValue with a projection: the hook returns select(value).

Signature:

typescript
type UseValueSelectOptions<T, U> = {
  select: (value: T) => U;
  isEqual?: (a: U, b: U) => boolean;
};

Released under the MIT License.