mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 13:02:23 -07:00
Fixed: Fetch Artists on SignalR Reconnect to prevent Store issues
This commit is contained in:
parent
a436692d06
commit
5a8b303f80
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@ import titleCase from 'Utilities/String/titleCase';
|
|||
import { fetchCommands, updateCommand, finishCommand } from 'Store/Actions/commandActions';
|
||||
import { setAppValue, setVersion } from 'Store/Actions/appActions';
|
||||
import { update, updateItem, removeItem } from 'Store/Actions/baseActions';
|
||||
import { fetchArtist } from 'Store/Actions/artistActions';
|
||||
import { fetchHealth } from 'Store/Actions/systemActions';
|
||||
import { fetchQueue, fetchQueueDetails } from 'Store/Actions/queueActions';
|
||||
import { fetchRootFolders } from 'Store/Actions/rootFolderActions';
|
||||
|
@ -68,6 +69,7 @@ const mapDispatchToProps = {
|
|||
dispatchUpdate: update,
|
||||
dispatchUpdateItem: updateItem,
|
||||
dispatchRemoveItem: removeItem,
|
||||
dispatchFetchArtist: fetchArtist,
|
||||
dispatchFetchHealth: fetchHealth,
|
||||
dispatchFetchQueue: fetchQueue,
|
||||
dispatchFetchQueueDetails: fetchQueueDetails,
|
||||
|
@ -298,6 +300,7 @@ class SignalRConnector extends Component {
|
|||
|
||||
const {
|
||||
dispatchFetchCommands,
|
||||
dispatchFetchArtist,
|
||||
dispatchSetAppValue
|
||||
} = this.props;
|
||||
|
||||
|
@ -305,6 +308,7 @@ class SignalRConnector extends Component {
|
|||
// are in sync after reconnecting.
|
||||
|
||||
if (this.props.isReconnecting || this.props.isDisconnected) {
|
||||
dispatchFetchArtist();
|
||||
dispatchFetchCommands();
|
||||
repopulatePage();
|
||||
}
|
||||
|
@ -382,6 +386,7 @@ SignalRConnector.propTypes = {
|
|||
dispatchUpdate: PropTypes.func.isRequired,
|
||||
dispatchUpdateItem: PropTypes.func.isRequired,
|
||||
dispatchRemoveItem: PropTypes.func.isRequired,
|
||||
dispatchFetchArtist: PropTypes.func.isRequired,
|
||||
dispatchFetchHealth: PropTypes.func.isRequired,
|
||||
dispatchFetchQueue: PropTypes.func.isRequired,
|
||||
dispatchFetchQueueDetails: PropTypes.func.isRequired,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue