Use stable cache key for useMemo
This commit is contained in:
parent
8b55f67964
commit
881820888a
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function ComboMultipleDropdownList({
|
||||||
)
|
)
|
||||||
: options
|
: options
|
||||||
).filter((o) => o[0] && !selections.includes(o[1])),
|
).filter((o) => o[0] && !selections.includes(o[1])),
|
||||||
[term, selections]
|
[term, selections.join(',')]
|
||||||
);
|
);
|
||||||
const hiddenField = useMemo(
|
const hiddenField = useMemo(
|
||||||
() => document.querySelector(`input[data-uuid="${hiddenFieldId}"]`),
|
() => document.querySelector(`input[data-uuid="${hiddenFieldId}"]`),
|
||||||
|
|
Loading…
Reference in a new issue