Phyks (Lucas Verney)
9717bdc47b
Invalidate the store at logout, emptying cached items such as artists, albums and songs and then preventing them from quickly reappearing when reconnecting with the same or a different account. Closes #5.
22 lines
843 B
JavaScript
22 lines
843 B
JavaScript
export * from "./auth";
|
|
|
|
import APIAction from "./APIActions";
|
|
|
|
export const ARTISTS_SUCCESS = "ARTISTS_SUCCESS";
|
|
export const ARTISTS_REQUEST = "ARTISTS_REQUEST";
|
|
export const ARTISTS_FAILURE = "ARTISTS_FAILURE";
|
|
export var { loadArtists } = APIAction("artists", ARTISTS_REQUEST, ARTISTS_SUCCESS, ARTISTS_FAILURE);
|
|
|
|
export const ALBUMS_SUCCESS = "ALBUMS_SUCCESS";
|
|
export const ALBUMS_REQUEST = "ALBUMS_REQUEST";
|
|
export const ALBUMS_FAILURE = "ALBUMS_FAILURE";
|
|
export var { loadAlbums } = APIAction("albums", ALBUMS_REQUEST, ALBUMS_SUCCESS, ALBUMS_FAILURE);
|
|
|
|
export const SONGS_SUCCESS = "SONGS_SUCCESS";
|
|
export const SONGS_REQUEST = "SONGS_REQUEST";
|
|
export const SONGS_FAILURE = "SONGS_FAILURE";
|
|
export var { loadSongs } = APIAction("songs", SONGS_REQUEST, SONGS_SUCCESS, SONGS_FAILURE);
|
|
|
|
export * from "./paginate";
|
|
export * from "./store";
|