Skip to content

Commit

Permalink
export fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodik committed Jan 18, 2016
1 parent 8079b50 commit 1560c3f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
lib
.idea
npm-debug.log
11 changes: 0 additions & 11 deletions index.js

This file was deleted.

4 changes: 2 additions & 2 deletions modules/ReduxAsyncConnect.js
Expand Up @@ -46,7 +46,7 @@ export function loadOnServer({ components, params }, store, helpers) {
});
}

@connect(() => ({}), {toggleLoading, initialDataLoaded})

class ReduxAsyncConnect extends React.Component {
static propTypes = {
components: array.isRequired,
Expand Down Expand Up @@ -116,4 +116,4 @@ class ReduxAsyncConnect extends React.Component {

}

export default ReduxAsyncConnect;
export default connect(() => ({}), {toggleLoading, initialDataLoaded})(ReduxAsyncConnect);
11 changes: 11 additions & 0 deletions modules/index.js
@@ -0,0 +1,11 @@
import {loadOnServer, ReduxAsyncConnect} from './ReduxAsyncConnect';
import {reducer, clearKey, loadSuccess, asyncConnect} from './asyncConnect';

export {
loadOnServer,
ReduxAsyncConnect,
reducer,
clearKey,
loadSuccess,
asyncConnect
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "redux-async-connect",
"version": "0.1.1",
"description": "It allows you to request async data, store them in redux state and connect them to your react component.",
"main": "index.js",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Rezonans/redux-async-connect.git"
Expand Down

0 comments on commit 1560c3f

Please sign in to comment.