Skip to content

Commit

Permalink
Prevent loading bar for showing on every new block - Closes #375
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Feb 16, 2018
1 parent c797e3d commit e34bd12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/store/middlewares/loadingBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import actionsType from '../../constants/actions';

const ignoredLoadingActionKeys = ['loader/status'];
const ignoredLoadingActionKeys = [
'transactions', // because this is called every 10 seconds and the app doesn't look good with so much loading going on.
];

const loadingBarMiddleware = () => next => (action) => {
switch (action.type) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/middlewares/loadingBar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import actionType from '../../constants/actions';
describe('LoadingBar middleware', () => {
let store;
let next;
const ignoredLoadingActionKeys = ['loader/status'];
const ignoredLoadingActionKeys = ['transactions'];

beforeEach(() => {
store = stub();
Expand Down

0 comments on commit e34bd12

Please sign in to comment.