mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Before, Redux was throwing an error saying that a plain object was not being returned from the `init()` function which was breaking hyperterm.
13 lines
219 B
JavaScript
13 lines
219 B
JavaScript
import rpc from '../rpc';
|
|
import { INIT } from '../constants';
|
|
|
|
export function init () {
|
|
return (dispatch) => {
|
|
dispatch({
|
|
type: INIT,
|
|
effect: () => {
|
|
rpc.emit('init');
|
|
}
|
|
});
|
|
};
|
|
}
|