Skip to content
Permalink
Browse files

fix(inspectorEngine): fix bug caused by 192843c

  • Loading branch information...
yyc-git committed Mar 27, 2019
1 parent 192843c commit db62c89904689505c4df4df73cc33d7e48367026
@@ -150,9 +150,10 @@ let initEngine = () =>
();
})
|> WonderBsMost.Most.merge(
/* _, */
_getLoadInspectorEngineData()
|> WonderBsMost.Most.tap(inspectorEngineState => {
Js.log("inspctor data ");
Js.log("inspector data ");
Js.log((
inspectorEngineState,
StateDataInspectorEngineService.getStateData(),
@@ -163,7 +164,5 @@ let initEngine = () =>
();
}),
)
/* |> WonderBsMost.Most.flatMap(engineState =>
) */
|> WonderBsMost.Most.drain
);

This file was deleted.

@@ -0,0 +1,5 @@
open Wonderjs;

open StateDataMainType;

let inspectorEngineStateData = {state: None, isDebug: false};
File renamed without changes.
@@ -1,26 +1,26 @@
open EditorStateDataType;

let getStateIsDebug = () =>
CreateEditorStateDataEditorService.editorStateData.isDebug;
StateDataEditor.editorStateData.isDebug;

let setStateIsDebug = isDebug => {
CreateEditorStateDataEditorService.editorStateData.isDebug = isDebug;
StateDataEditor.editorStateData.isDebug = isDebug;

();
};

let getIsRun = () => CreateEditorStateDataEditorService.editorStateData.isRun;
let getIsRun = () => StateDataEditor.editorStateData.isRun;

let setIsRun = isRun => {
CreateEditorStateDataEditorService.editorStateData.isRun = isRun;
StateDataEditor.editorStateData.isRun = isRun;

();
};

let getState = () =>
CreateEditorStateDataEditorService.editorStateData.editorState;
StateDataEditor.editorStateData.editorState;

let setState = state => {
CreateEditorStateDataEditorService.editorStateData.editorState = state;
StateDataEditor.editorStateData.editorState = state;
state;
};
@@ -1,10 +1,3 @@
open Wonderjs;

let getStateData = () =>
CreateInspectorEngineStateDataService.createStateData();

let unsafeGetState = () =>
StateDataMainService.unsafeGetState(getStateData());

let setState = (state: StateDataMainType.state) =>
StateDataMainService.setState(getStateData(), state);
let getStateData = () => InspectorStateDataEngine.inspectorEngineStateData;
@@ -2,12 +2,17 @@ let deepCopyForRestore = Wonderjs.StateAPI.deepCopyForRestore;

let createState = Wonderjs.StateAPI.createState;

let createStateData = CreateInspectorEngineStateDataService.createStateData;

let getStateFromData = Wonderjs.StateAPI.getStateFromData;

let unsafeGetState = StateDataInspectorEngineService.unsafeGetState;

let setStateToData = Wonderjs.StateAPI.setStateToData;

let setState = StateDataInspectorEngineService.setState;
let unsafeGetState = () =>
Wonderjs.StateDataMainService.unsafeGetState(
StateDataInspectorEngineService.getStateData(),
);

let setState = (state: Wonderjs.StateDataMainType.state) =>
Wonderjs.StateDataMainService.setState(
StateDataInspectorEngineService.getStateData(),
state,
);

0 comments on commit db62c89

Please sign in to comment.
You can’t perform that action at this time.