mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
reduce warning log
This commit is contained in:
@@ -17,8 +17,11 @@ import { deepClone } from './utils'
|
||||
export const siteConfig = (key, defaultVal = null, extendConfig = null) => {
|
||||
let global = null
|
||||
try {
|
||||
const isClient = typeof window !== 'undefined';
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
global = useGlobal()
|
||||
global = isClient ? useGlobal() : {}
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
// global = useGlobal()
|
||||
} catch (error) {}
|
||||
|
||||
// 首先 配置最优先读取NOTION中的表格配置
|
||||
|
||||
Reference in New Issue
Block a user