mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-26 18:54:12 +00:00
Merge pull request #1509 from dudeami/fix/ssr-isFirstLoad
Fix server-side rendering after first load.
This commit is contained in:
commit
9040e2f157
|
@ -1,3 +1,5 @@
|
|||
import { isBrowser } from "@utils/browser";
|
||||
|
||||
export class FirstLoadService {
|
||||
#isFirstLoad: boolean;
|
||||
static #instance: FirstLoadService;
|
||||
|
@ -20,6 +22,6 @@ export class FirstLoadService {
|
|||
}
|
||||
|
||||
static get isFirstLoad() {
|
||||
return this.#Instance.isFirstLoad;
|
||||
return !isBrowser() || this.#Instance.isFirstLoad;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue