Fix missing useLayoutEffect

This commit is contained in:
Lim Chee Aun 2023-09-02 02:25:44 +08:00
parent 852bb27e81
commit 062f42a05d

View file

@ -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';