feat(doc-search-view); add useEffect to follow attributes

This commit is contained in:
tekh 2025-07-16 11:07:27 +02:00
parent 3cef34bd1e
commit d82e12759e

View File

@ -48,6 +48,9 @@ export function DocSearchView() {
//#region attributes
const [attributes, setAttributes] = useState<Record<string, string>>({});
useEffect(() => {
}, [attributes]);
function setAttribute(name: string, serilizedValue: string) {
setAttributes(prev => ({
...prev,