mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
refactor: webpack config (#11421)
This commit is contained in:
@@ -7,7 +7,6 @@ import { useDebugValue, useEffect, useState } from 'react';
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
|
||||
// the `process.env.NODE_ENV !== 'production'` condition is resolved by the build tool
|
||||
/* eslint-disable react-hooks/rules-of-hooks */
|
||||
|
||||
const noop: (...args: any[]) => any = () => {};
|
||||
|
||||
@@ -67,7 +66,7 @@ export const useRefEffect = <T>(
|
||||
|
||||
// Show the current ref value in development
|
||||
// in react dev tools
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (BUILD_CONFIG.debug) {
|
||||
useDebugValue(internalRef.ref_.current);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user