fix: page loading message does not persist

pull/3988/head
Kamran Ahmed 2 years ago
parent aa32258aa1
commit 8c29d43bef
  1. 4
      src/components/PageProgress.tsx
  2. 2
      src/stores/page.ts

@ -14,6 +14,10 @@ export function PageProgress(props: Props) {
const $pageProgressMessage = useStore(pageProgressMessage);
useEffect(() => {
if ($pageProgressMessage === undefined) {
return;
}
setMessage($pageProgressMessage);
}, [$pageProgressMessage]);

@ -1,4 +1,4 @@
import { atom } from 'nanostores';
export const pageProgressMessage = atom('');
export const pageProgressMessage = atom<string | undefined>(undefined);
export const sponsorHidden = atom(false);

Loading…
Cancel
Save