---
url: "https://vueda.dev/v3/reference/api/js/use/useFilteredAttrs/functions/useFilteredAttrs.md"
title: "useFilteredAttrs"
---

# useFilteredAttrs

## Overview

Filter attrs to prevent excessive attrs from being rendered.

## Signature

`useFilteredAttrs(pickList, omitList, attrs)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-pickList">pickList</span> | `string[] \| Set` | yes | The list of attrs to pick. |
| <span id="param-omitList">omitList</span> | `string[] \| Set` | yes | The list of attrs to omit. |
| <span id="param-attrs">attrs</span> | `object` | no | The attrs to filter. |

### Returns

`ComputedRef`

- The filtered attrs.

## Source

`client/lib/use/useFilteredAttrs.js:51`
