test: await client settlement in late-response cases (WealthLedger/frontend#61) (#81)
This commit was merged in pull request #81.
This commit is contained in:
@@ -101,6 +101,7 @@ function useStocksPageVm() {
|
||||
};
|
||||
|
||||
return {
|
||||
changePage,
|
||||
criteria,
|
||||
error,
|
||||
items: page?.items ?? [],
|
||||
@@ -111,6 +112,8 @@ function useStocksPageVm() {
|
||||
onSearch: () => void search(),
|
||||
page: page?.page,
|
||||
resultTime: page?.asOf,
|
||||
// Test seam: settle the actual operation instead of the handler release.
|
||||
search,
|
||||
searched: page !== null,
|
||||
totalPages: page ? page.page + Number(page.hasNext) : 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user