Skip to content

Commit

Permalink
removed console
Browse files Browse the repository at this point in the history
  • Loading branch information
yash committed Dec 6, 2018
1 parent d7d5aca commit 90a7175
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions packages/redux-subspace/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ var hasNamespace = function hasNamespace(action, namespace) {

var processAction = function processAction(namespace) {
return function (action, callback, defaultValue) {
console.log('processAction', action, callback, defaultValue);

if (!namespace || isGlobal(action)) {
return callback(action);
} else if (hasNamespace(action, namespace)) {
Expand Down Expand Up @@ -338,7 +336,6 @@ var resolveParameters = function resolveParameters(mapState, namespace) {
};
}

console.log('resolveParameters', [mapState, namespace]);
return [mapState, namespace];
};

Expand All @@ -365,8 +362,6 @@ var resolveEnhancer = function resolveEnhancer(_temp) {
};

var createSubspace = function createSubspace(store, enhancer) {
console.log('createSubspace', store, enhncer);

if (typeof enhancer !== 'undefined') {
return enhancer(createSubspace)(store);
}
Expand All @@ -376,7 +371,6 @@ var createSubspace = function createSubspace(store, enhancer) {

var subspaceEnhanced = function subspaceEnhanced(mapState, namespace, isRoot) {
var subspaceEnhancers = redux.compose(subspaceEnhancer(mapState, namespace), namespaceEnhancer(namespace), subspaceTypesEnhancer(isRoot, namespace), processActionEnhancer(namespace), rootStoreEnhancer);
console.log('subspaceEnhanced', subspaceEnhancers);
return function (store) {
return createSubspace(store, redux.compose(resolveEnhancer(store.subspaceOptions), subspaceEnhancers));
};
Expand Down
1 change: 0 additions & 1 deletion packages/redux-subspace/src/actions/processAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import hasNamespace from '../actions/hasNamespace'
import isGlobal from '../actions/isGlobal'

const processAction = (namespace) => (action, callback, defaultValue) => {
console.log('processAction', action, callback, defaultValue)
if (!namespace || isGlobal(action)) {
return callback(action)
} else if (hasNamespace(action, namespace)) {
Expand Down
3 changes: 0 additions & 3 deletions packages/redux-subspace/src/store/subspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const resolveParameters = (mapState, namespace) => {
if (mapStateType !== 'function') {
mapState = (state) => state[namespace]
}
console.log('resolveParameters', [mapState, namespace])

return [mapState, namespace]
}
Expand All @@ -49,7 +48,6 @@ const resolveEnhancer = ({ enhancer = DEFAULT_OPTIONS.enhancer } = DEFAULT_OPTIO
}

const createSubspace = (store, enhancer) => {
console.log('createSubspace', store, enhncer)

if (typeof enhancer !== 'undefined') {
return enhancer(createSubspace)(store)
Expand All @@ -66,7 +64,6 @@ const subspaceEnhanced = (mapState, namespace, isRoot) => {
processActionEnhancer(namespace),
rootStoreEnhancer
)
console.log('subspaceEnhanced', subspaceEnhancers)

return (store) => createSubspace(store, compose(resolveEnhancer(store.subspaceOptions), subspaceEnhancers))
}
Expand Down

0 comments on commit 90a7175

Please sign in to comment.