1 import { isBrowser } from "@utils/browser";
3 export class FirstLoadService {
5 static #instance: FirstLoadService;
7 private constructor() {
8 this.#isFirstLoad = true;
12 const isFirst = this.#isFirstLoad;
14 this.#isFirstLoad = false;
20 static get #Instance() {
21 return this.#instance ?? (this.#instance = new this());
24 static get isFirstLoad() {
25 return !isBrowser() || this.#Instance.isFirstLoad;