Skip to content

useFilteredAttrs ​

Overview ​

Filter attrs to prevent excessive attrs from being rendered.

Signature ​

useFilteredAttrs(pickList, omitList, attrs)

Parameters ​

NameTypeRequiredDescription
pickListstring[] | SetyesThe list of attrs to pick.
omitListstring[] | SetyesThe list of attrs to omit.
attrsobjectnoThe attrs to filter.

Returns ​

ComputedRef

  • The filtered attrs.

Source ​

client/lib/use/useFilteredAttrs.js:51