mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
14 lines
290 B
TypeScript
14 lines
290 B
TypeScript
import rpc from '../rpc';
|
|
import {INIT} from '../constants';
|
|
import type {HyperDispatch} from '../hyper';
|
|
|
|
export default function init() {
|
|
return (dispatch: HyperDispatch) => {
|
|
dispatch({
|
|
type: INIT,
|
|
effect: () => {
|
|
rpc.emit('init', null);
|
|
}
|
|
});
|
|
};
|
|
}
|