mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-21 15:03:49 +00:00
Move settings from store to another context
This commit is contained in:
@@ -66,12 +66,14 @@ export const selectServerListener = (
|
||||
) => {
|
||||
const listener = createListenerMiddleware();
|
||||
|
||||
listener.startListening({
|
||||
actionCreator: selectServerThunk.fulfilled,
|
||||
effect: ({ payload }, { dispatch }) => {
|
||||
isReachableServer(payload) && dispatch(loadMercureInfo());
|
||||
},
|
||||
});
|
||||
// TODO Find a way for the mercure info to be re-loaded when server changes, without leaking mercure implementation
|
||||
// details
|
||||
// listener.startListening({
|
||||
// actionCreator: selectServerThunk.fulfilled,
|
||||
// effect: ({ payload }, { dispatch }) => {
|
||||
// isReachableServer(payload) && dispatch(loadMercureInfo());
|
||||
// },
|
||||
// });
|
||||
|
||||
return listener;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user