Add a clarifying comment
This commit is contained in:
parent
33d9c78696
commit
1470a20bfe
|
@ -197,6 +197,8 @@ export function ContractSearch(props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
// if there are no search results yet (not even an empty page), that means
|
||||||
|
// we should do an initial search to populate a first page.
|
||||||
if (pages.length === 0) {
|
if (pages.length === 0) {
|
||||||
queryNextPage()
|
queryNextPage()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user