mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
14 lines
277 B
TypeScript
14 lines
277 B
TypeScript
import rpc from '../rpc';
|
|
import {INIT} from '../constants';
|
|
import {Dispatch} from 'redux';
|
|
|
|
export default function init() {
|
|
return (dispatch: Dispatch<any>) => {
|
|
dispatch({
|
|
type: INIT,
|
|
effect: () => {
|
|
rpc.emit('init', null);
|
|
}
|
|
});
|
|
};
|
|
}
|