From dc6b3cb081e8819e80d0e82d6b926998ec9d5bdd Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 4 Jul 2018 13:07:57 +0100 Subject: [PATCH] showing all is pretty slow, show an additional 50 instead Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/DevtoolsDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index 5e75d16455..3078944b62 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -243,6 +243,7 @@ class SendAccountData extends GenericEditor { } const INITIAL_LOAD_TILES = 20; +const LOAD_TILES_STEP_SIZE = 50; class FilteredList extends React.Component { static propTypes = { @@ -276,7 +277,7 @@ class FilteredList extends React.Component { showAll = () => { this.setState({ - truncateAt: -1, + truncateAt: this.state.truncateAt + LOAD_TILES_STEP_SIZE, }); };