We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fb6191 + c78bef3 commit 2ada1baCopy full SHA for 2ada1ba
src/hooks/useStatus.ts
@@ -56,12 +56,8 @@ export default function useStatus(
56
const deadlineRef = useRef(null);
57
58
// =========================== Dom Node ===========================
59
- const cacheElementRef = useRef<HTMLElement>(null);
60
-
61
function getDomElement() {
62
- const element = getElement();
63
64
- return element || cacheElementRef.current;
+ return getElement();
65
}
66
67
// ========================== Motion End ==========================
0 commit comments