Skip to content

Commit

Permalink
Merge branch 'master' into feat/putt-putt-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbote authored May 7, 2019
2 parents 5fb41c5 + 4aabebb commit d674162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ options.unmount = vnode => {

const hooks = c.__hooks;
if (hooks) {
hooks._list.some(hook => hook._cleanup && hook._cleanup());
hooks._list.forEach(hook => hook._cleanup && hook._cleanup());
}
};

Expand Down Expand Up @@ -237,8 +237,8 @@ if (typeof window !== 'undefined') {
}

function handleEffects(effects) {
effects.some(invokeCleanup);
effects.some(invokeEffect);
effects.forEach(invokeCleanup);
effects.forEach(invokeEffect);
return [];
}

Expand Down

0 comments on commit d674162

Please sign in to comment.