12 lines
426 B
JavaScript
12 lines
426 B
JavaScript
|
import { takeEvery } from 'redux-saga/effects';
|
||
|
|
||
|
// @HACK For now we reload the app when doing a language swap to force non-connected
|
||
|
// data to reload. Also the use of timeout to avoid using additional actions for now.
|
||
|
function* handleLanguageChange() {
|
||
|
yield setTimeout(() => location.reload(), 250);
|
||
|
}
|
||
|
|
||
|
export default function* handleConfigChanges() {
|
||
|
yield takeEvery('CONFIG_LANGUAGE_CHANGE', handleLanguageChange);
|
||
|
}
|