add TODO comments for the new Electron async APIs that replace the remote module

This commit is contained in:
Benjamin Staneck 2019-10-25 14:34:52 +02:00
parent b8a1ffd6b0
commit 03ff483bea
4 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,5 @@
import {remote} from 'electron';
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
const {getDecoratedKeymaps} = remote.require('./plugins');

View file

@ -1,4 +1,6 @@
import {remote} from 'electron';
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
import Immutable, {Immutable as ImmutableType} from 'seamless-immutable';
import {decorateUIReducer} from '../utils/plugins';
import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';

View file

@ -1,4 +1,5 @@
import {ipcRenderer, remote} from 'electron';
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
const plugins = remote.require('./plugins') as typeof import('../../app/plugins');

View file

@ -1,4 +1,6 @@
import {remote} from 'electron';
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
import {connect as reduxConnect} from 'react-redux';
import {basename} from 'path';