From 062f42a05d45d4dc6167b04787bf9992d3a4fc45 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 2 Sep 2023 02:25:44 +0800 Subject: [PATCH] Fix missing useLayoutEffect --- src/pages/notifications.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index a71c34ed..48d7ce4f 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -2,7 +2,13 @@ import './notifications.css'; import { useIdle } from '@uidotdev/usehooks'; import { memo } from 'preact/compat'; -import { useCallback, useEffect, useRef, useState } from 'preact/hooks'; +import { + useCallback, + useEffect, + useLayoutEffect, + useRef, + useState, +} from 'preact/hooks'; import { useSearchParams } from 'react-router-dom'; import { useSnapshot } from 'valtio';