File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import actions from '../stateManagement/actions';
2
2
import Helper from '../helper.js' ;
3
3
function BaseApi ( { helper, initialState} ) {
4
4
this . _helper = helper ;
5
- this . _state = this . _helper . getCopyState ( initialState ) ; // it will be updated after each render
6
5
this . _dispatch = null ;
7
6
this . _setFlushState = null ;
8
7
this . _isReady = false ;
9
8
helper . setNoneEnumProps ( this , {
9
+ state : this . _helper . getCopyState ( initialState ) , // it will be updated after each render
10
10
forceUpdateState : { } ,
11
- previousState : this . _helper . getCopyState ( initialState ) , // it is a previous value of this._state
11
+ previousState : this . _helper . getCopyState ( initialState ) , // it is a previous value of this.state
12
12
stateRef : { } , // have a same reference with state . It will be updated in each execution of useDynamicTabs.js
13
13
} ) ;
14
14
}
@@ -39,8 +39,8 @@ Helper.setNoneEnumProps(BaseApi.prototype, {
39
39
return this ;
40
40
} ,
41
41
updateState : function ( state ) {
42
- this . previousState = this . _helper . getCopyState ( this . _state ) ;
43
- this . _state = this . _helper . getCopyState ( state ) ;
42
+ this . previousState = this . _helper . getCopyState ( this . state ) ;
43
+ this . state = this . _helper . getCopyState ( state ) ;
44
44
return this ;
45
45
} ,
46
46
updateFlushState : function ( setFlushState ) {
You can’t perform that action at this time.
0 commit comments