Skip to content

Commit 1560c3f

Browse files
author
rodik
committed
export fixes
1 parent 8079b50 commit 1560c3f

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
lib
33
.idea
4+
npm-debug.log

index.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/ReduxAsyncConnect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function loadOnServer({ components, params }, store, helpers) {
4646
});
4747
}
4848

49-
@connect(() => ({}), {toggleLoading, initialDataLoaded})
49+
5050
class ReduxAsyncConnect extends React.Component {
5151
static propTypes = {
5252
components: array.isRequired,
@@ -116,4 +116,4 @@ class ReduxAsyncConnect extends React.Component {
116116

117117
}
118118

119-
export default ReduxAsyncConnect;
119+
export default connect(() => ({}), {toggleLoading, initialDataLoaded})(ReduxAsyncConnect);

modules/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {loadOnServer, ReduxAsyncConnect} from './ReduxAsyncConnect';
2+
import {reducer, clearKey, loadSuccess, asyncConnect} from './asyncConnect';
3+
4+
export {
5+
loadOnServer,
6+
ReduxAsyncConnect,
7+
reducer,
8+
clearKey,
9+
loadSuccess,
10+
asyncConnect
11+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redux-async-connect",
33
"version": "0.1.1",
44
"description": "It allows you to request async data, store them in redux state and connect them to your react component.",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"repository": {
77
"type": "git",
88
"url": "git+ssh://git@github.com/Rezonans/redux-async-connect.git"

0 commit comments

Comments
 (0)