hyper/lib/actions/index.ts

15 lines
290 B
TypeScript
Raw Normal View History

import rpc from '../rpc';
2019-12-27 06:33:21 -09:00
import {INIT} from '../constants';
2023-06-26 01:29:50 -08:00
import type {HyperDispatch} from '../hyper';
2016-07-13 12:44:24 -08:00
export default function init() {
2020-01-02 09:27:27 -09:00
return (dispatch: HyperDispatch) => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init', null);
}
});
2016-10-04 11:44:10 -08:00
};
2016-07-13 12:44:24 -08:00
}