mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: update eslint rules
This commit is contained in:
1 parent
0e07c64cad
commit
5e8d2b1286
30 files changed
+73
-72
No files matched your search
@@ -109,9 +109,12 @@ const AutoComplete = forwardRef(function Impl<T>(props: AutoCompleteProps<T>, re
|
||||
const inputRef = useRef<HTMLInputElement>();
|
||||
const listRef = useRef<HTMLUListElement>();
|
||||
|
||||
if (props.cacheKey) superCache[props.cacheKey] ||= { query: {}, value: {} };
|
||||
const queryCache = props.cacheKey ? superCache[props.cacheKey].query : useRef({}).current;
|
||||
const valueCache = props.cacheKey ? superCache[props.cacheKey].value : useRef({}).current;
|
||||
let [queryCache, valueCache] = [useRef({}).current, useRef({}).current];
|
||||
if (props.cacheKey) {
|
||||
superCache[props.cacheKey] ||= { query: {}, value: {} };
|
||||
queryCache = superCache[props.cacheKey].query;
|
||||
valueCache = superCache[props.cacheKey].value;
|
||||
}
|
||||
|
||||
const queryList = async (query) => {
|
||||
if (!query && !allowEmptyQuery) {
|
||||
|
||||
Reference in new issue
Block a user