mirror of https://github.com/embarklabs/embark.git
2f2c0eefbf
In addition to introducing improvements per #1492 and #1494, adjust the transactions request action to allow for a `blockLimit` argument, since that API parameter is supported by embark. Revise `changePage` to invoke `fetchTransactions` correctly, i.e. with arguments pertaining to a starting block number and a block limit. These changes together fix most of the pagination problems related to exploring transactions, i.e. badly mis-ordered results are no longer displayed. However, a *wart* still remains related to estimation of the total number of transactions and pages. Sometimes the calculated number of pages for the transactions explorer doesn't match up to the actual number of transactions on the blockchain (owing to estimation). The pagination controls and display of transactions will temporarily behave a little strangely if one jumps ahead in the pages, e.g. a jump from cockpit explorer overview's transactions page 1 to page 5 for embark's demo, if an additional transaction has been added and the explorer overview is freshly loaded. This behavior is related to the fact that actions such as `fetchBlocksFull` and `fetchTransactions` are async without any means to determine when all actions have completed and React re-/rendering has settled down. There are probably some architectural changes that could improve the situation, but they're outside the scope of this PR and in no way easy to solve by means of React lifecycle methods. In fact, attempts to make an improvement with `componentDidUpdate` (and watching what happens in the debugger) revealed the nature of the problem, as described above. |
||
---|---|---|
.. | ||
.storybook | ||
config | ||
public | ||
scripts | ||
src | ||
.env | ||
.env.production | ||
.gitignore | ||
.npmrc | ||
CHANGELOG.md | ||
README.md | ||
package.json |
README.md
embark-ui
Web frontend for interactive DApp development with Embark
Visit embark.status.im to get started with Embark.