Skip to content

Commit

Permalink
Merge pull request #133 from pshenmic/feat/async-data-fetch
Browse files Browse the repository at this point in the history
Implement async fetch loading
  • Loading branch information
pshenmic authored May 13, 2024
2 parents a6fbe59 + bb263a7 commit 05fdb7c
Show file tree
Hide file tree
Showing 18 changed files with 647 additions and 403 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer
deploy:
runs-on: ubuntu-latest
needs: [build_api, build_indexer]
needs: [build_api, build_indexer, test_frontend]
if: github.event_name != 'pull_request' || github.event.pull_request.merged == true
steps:
- name: Deploy to the server
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/app/blocks/Blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function Blocks () {
setCurrentPage(selected)
setBlocks(res.resultSet)
})
.catch(console.log)
}, [pageSize])

const goToHeight = (e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function DataContract ({ identifier }) {
selected + 1,
pagintationConfig.itemsOnPage.default + 1)
.then((res) => setDocuments(res.resultSet))
.catch(console.log)

setCurrentPage(selected)
}
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/app/dataContracts/DataContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function DataContractsLayout () {
setCurrentPage(selected)
setDataContracts(res.resultSet)
})
.catch(console.log)
}

if (!loading) {
Expand Down
Loading

0 comments on commit 05fdb7c

Please sign in to comment.