diff --git a/package.json b/package.json index adf999c..c3feeca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fp-ts-react-stable-hooks", - "version": "1.4.0", + "version": "1.4.1", "description": "Stable hooks for react using FP-TS equality checks instead of shallow (reference) object comparison", "main": "dist/lib/index.js", "module": "dist/es2015/index.js", diff --git a/src/useEqMemoize.ts b/src/useEqMemoize.ts index b66123f..d02e0a6 100644 --- a/src/useEqMemoize.ts +++ b/src/useEqMemoize.ts @@ -17,11 +17,9 @@ export const useEqMemoize = >( if (!eq.equals(value, ref.current)) { // https://stackoverflow.com/questions/35469836/detecting-production-vs-development-react-at-runtime - if(options && options.debug && process.env.NODE_ENV !== 'production') { - /* eslint-disable no-console */ - console.info('Stable hook update triggered:'); - console.table({ 'prev': ref.current, 'value': value }); - /* eslint-enable no-console */ + if (options && options.debug && process.env.NODE_ENV !== 'production') { + // eslint-disable-next-line no-console + console.info('Stable hook update triggered:', { 'prev': ref.current, 'value': value }); } ref.current = value; signalRef.current += 1;