mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 04:41:14 +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 changed files with 3 additions and 1 deletions
|
@ -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