1 import { History, createBrowserHistory } from "history";
3 export class HistoryService {
4 static #_instance: HistoryService;
7 private constructor() {
8 this.#history = createBrowserHistory();
11 static get #Instance() {
12 return this.#_instance ?? (this.#_instance = new this());
15 public static get history() {
16 return this.#Instance.#history;