parent
d2394aca77
commit
aa32258aa1
9 changed files with 34 additions and 45 deletions
@ -1,13 +0,0 @@ |
||||
import { useRef } from "preact/hooks" |
||||
|
||||
export function useIsFirstRender(): boolean { |
||||
const isFirst = useRef(true) |
||||
|
||||
if (isFirst.current) { |
||||
isFirst.current = false |
||||
|
||||
return true |
||||
} |
||||
|
||||
return isFirst.current |
||||
} |
@ -1,4 +1,4 @@ |
||||
import { atom } from 'nanostores'; |
||||
|
||||
export const pageLoadingMessage = atom(''); |
||||
export const pageProgressMessage = atom(''); |
||||
export const sponsorHidden = atom(false); |
||||
|
Loading…
Reference in new issue