useFilteredAttrs
Overview
Filter attrs to prevent excessive attrs from being rendered.
Signature
useFilteredAttrs(pickList, omitList, attrs)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pickList | string[] | Set | yes | The list of attrs to pick. |
| omitList | string[] | Set | yes | The list of attrs to omit. |
| attrs | object | no | The attrs to filter. |
Returns
ComputedRef
- The filtered attrs.
Source
client/lib/use/useFilteredAttrs.js:51