Skip to content

Commit

Permalink
fix: remove hydration logging in development
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jul 28, 2021
2 parents 8d5a374 + 4dfe7fb commit 1bf7053
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions addon/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,7 @@ exports.addon = function (renderer) {
var put = renderer.put;

renderer.put = function (selector, css) {
if (selector in hydrated) {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line
console.info('Hydrated selector: ' + selector);
}

return;
}
if (selector in hydrated) return;

put(selector, css);
};
Expand Down

1 comment on commit 1bf7053

@streamich
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 5.3.1-master.137 🤞 master on CircleCI 🎉

Please sign in to comment.