Skip to content

Commit

Permalink
feat: subscribe to staging, redownload data
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Jan 24, 2022
1 parent 146c2b6 commit 6a38394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/actions/socket.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import socketIO from 'socket.io-client';
import { messageTypes } from '../../utils/message-types';
import { keyMirror } from '../store-functions';
import { getStagingData } from './climateWarehouseActions';

export const actions = keyMirror(
'SOCKET_PROJECTS_UPDATE',
Expand Down Expand Up @@ -209,6 +210,7 @@ export const stagingHasBeenUpdated = data => {
...data,
},
});
dispatch(getStagingData({ useMockedResponse: false }));
}
};
};

0 comments on commit 6a38394

Please sign in to comment.