dva
Advanced tools
Comparing version 2.6.0-beta.10 to 2.6.0-beta.11
@@ -10,3 +10,4 @@ import _objectSpread from '@babel/runtime/helpers/esm/objectSpread'; | ||
import { Provider } from 'react-redux'; | ||
export { connect, connectAdvanced, useDispatch, useSelector, useStore } from 'react-redux'; | ||
export { connect, connectAdvanced, shallowEqual, useDispatch, useSelector, useStore } from 'react-redux'; | ||
export { bindActionCreators } from 'redux'; | ||
import { create, utils } from 'dva-core'; | ||
@@ -13,0 +14,0 @@ export { saga } from 'dva-core'; |
@@ -13,2 +13,3 @@ 'use strict'; | ||
var reactRedux = require('react-redux'); | ||
var redux = require('redux'); | ||
var dvaCore = require('dva-core'); | ||
@@ -407,2 +408,8 @@ var reactRouterDom = require('react-router-dom'); | ||
}); | ||
Object.defineProperty(exports, 'shallowEqual', { | ||
enumerable: true, | ||
get: function () { | ||
return reactRedux.shallowEqual; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'useDispatch', { | ||
@@ -426,2 +433,8 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'bindActionCreators', { | ||
enumerable: true, | ||
get: function () { | ||
return redux.bindActionCreators; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'saga', { | ||
@@ -428,0 +441,0 @@ enumerable: true, |
@@ -7,3 +7,4 @@ import { | ||
MiddlewareAPI, | ||
StoreEnhancer | ||
StoreEnhancer, | ||
bindActionCreators | ||
} from 'redux'; | ||
@@ -125,5 +126,7 @@ | ||
export { bindActionCreators }; | ||
export { | ||
connect, connectAdvanced, useSelector, useDispatch, useStore, | ||
DispatchProp, | ||
DispatchProp, shallowEqual | ||
} from 'react-redux'; | ||
@@ -130,0 +133,0 @@ |
{ | ||
"name": "dva", | ||
"version": "2.6.0-beta.10", | ||
"version": "2.6.0-beta.11", | ||
"description": "React and redux based, lightweight and elm-style framework.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,3 +12,5 @@ import React from 'react'; | ||
useStore, | ||
shallowEqual, | ||
} from 'react-redux'; | ||
import { bindActionCreators } from 'redux'; | ||
import { utils, create, saga } from 'dva-core'; | ||
@@ -116,3 +118,4 @@ import * as router from 'react-router-dom'; | ||
export dynamic from './dynamic'; | ||
export { connect, connectAdvanced, useSelector, useDispatch, useStore }; | ||
export { connect, connectAdvanced, useSelector, useDispatch, useStore, shallowEqual }; | ||
export { bindActionCreators }; | ||
export { router }; | ||
@@ -119,0 +122,0 @@ export { saga }; |
43525
1246