(keys: (keyof T)[])
| 36 | }, []); |
| 37 | |
| 38 | const reduced = (keys: (keyof T)[]) => |
| 39 | keys.reduce( |
| 40 | (result, key) => ({ |
| 41 | ...result, |
| 42 | [key]: purify?.sanitize?.(obj[key]) ?? defaultValue?.[key] ?? '', |
| 43 | }), |
| 44 | { isReady: !!purify } as UseObjectPurify<T>, |
| 45 | ); |
| 46 | |
| 47 | return useMemo(() => { |
| 48 | if (filters.length === 0) { |
no outgoing calls