Merge pull request #1702 from xodio/tweak-list-of-actions-that-trigger-hinting-update

Tweak list of actions that trigger hinting update
This commit is contained in:
Evgeny Kochetkov
2019-02-27 20:07:36 +03:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -6,7 +6,11 @@ import * as EAT from '../editor/actionTypes';
// :: Action -> Boolean
const isLoadingProjectAction = R.propSatisfies(
isAmong([PAT.PROJECT_IMPORT, PAT.PROJECT_OPEN]),
isAmong([
PAT.PROJECT_IMPORT,
PAT.PROJECT_OPEN,
EAT.INSTALL_LIBRARIES_COMPLETE,
]),
'type'
);

View File

@@ -36,7 +36,6 @@ export const shallDeduceTypes = R.curry((project, action) =>
isAmong([
PAT.PROJECT_UPDATE_META,
PAT.NODE_ADD,
PAT.NODE_CHANGE_ARITY_LEVEL,
PAT.NODE_RESIZE,
PAT.COMMENT_ADD,
PAT.COMMENT_RESIZE,
@@ -52,6 +51,7 @@ export const shallDeduceTypes = R.curry((project, action) =>
// PAT.PATCH_RENAME,
// PAT.BULK_DELETE_ENTITIES,
// PAT.LINK_ADD,
// PAT.NODE_CHANGE_ARITY_LEVEL,
// PAT.NODE_CHANGE_SPECIALIZATION,
// For NODE_UPDATE_PROPERTY will be a special check
])