Resolve all remaining lint issues (#88)
* Rework 'navIdx' variables from number arrays to strings to avoid equality-check failures in react hooks * Resolve all remaining lint issues * Fix tests * Use node v18 in gh action test
This commit is contained in:
parent
3a90114f3a
commit
f36c956536
60 changed files with 478 additions and 482 deletions
|
@ -25,7 +25,7 @@ export const Search = ({navIdx, visible, params}: ScreenParams) => {
|
|||
const [query, setQuery] = useState<string>('')
|
||||
const autocompleteView = useMemo<UserAutocompleteViewModel>(
|
||||
() => new UserAutocompleteViewModel(store),
|
||||
[],
|
||||
[store],
|
||||
)
|
||||
const {name} = params
|
||||
|
||||
|
@ -35,7 +35,7 @@ export const Search = ({navIdx, visible, params}: ScreenParams) => {
|
|||
autocompleteView.setup()
|
||||
store.nav.setTitle(navIdx, 'Search')
|
||||
}
|
||||
}, [store, visible, name])
|
||||
}, [store, visible, name, navIdx, autocompleteView])
|
||||
|
||||
const onChangeQuery = (text: string) => {
|
||||
setQuery(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue