#
@latticexyz/react
#
Functions
#
useComponentValue
▸ useComponentValue<S
>(component
, entityIndex
, defaultValue
): ComponentValue
<S
>
#
Type parameters
#
Parameters
#
Returns
ComponentValue
<S
>
#
Defined in
▸ useComponentValue<S
>(component
, entityIndex
): ComponentValue
<S
> | undefined
#
Type parameters
#
Parameters
#
Returns
ComponentValue
<S
> | undefined
#
Defined in
#
useDeprecatedComputedValue
▸ useDeprecatedComputedValue<T
>(computedValue
): T
Deprecated
See https://github.com/latticexyz/mud/issues/339
#
Type parameters
#
Parameters
#
Returns
T
#
Defined in
useDeprecatedComputedValue.ts:5
#
useEntityQuery
▸ useEntityQuery(fragments
, options?
): EntityIndex
[]
Returns all matching EntityIndex
es for a given entity query,
and triggers a re-render as new query results come in.
#
Parameters
#
Returns
EntityIndex
[]
Set of entities matching the query fragments.
#
Defined in
#
useObservableValue
▸ useObservableValue<T
>(observable
, defaultValue
): T
#
Type parameters
#
Parameters
#
Returns
T
#
Defined in
▸ useObservableValue<T
>(observable
): T
| undefined
#
Type parameters
#
Parameters
#
Returns
T
| undefined