feat(doc-search-view); add useEffect to follow attributes
This commit is contained in:
parent
3cef34bd1e
commit
d82e12759e
@ -48,6 +48,9 @@ export function DocSearchView() {
|
|||||||
//#region attributes
|
//#region attributes
|
||||||
const [attributes, setAttributes] = useState<Record<string, string>>({});
|
const [attributes, setAttributes] = useState<Record<string, string>>({});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
}, [attributes]);
|
||||||
|
|
||||||
function setAttribute(name: string, serilizedValue: string) {
|
function setAttribute(name: string, serilizedValue: string) {
|
||||||
setAttributes(prev => ({
|
setAttributes(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user