import { createSignal } from "solid-js";

const [builderResetNonce, setBuilderResetNonce] = createSignal(0);

/** Clic sur le logo alors que l’URL est déjà « / » : réinitialiser le parcours sans recharger. */
export const bumpBuilderResetBus = () => setBuilderResetNonce((n) => n + 1);

export const readBuilderResetNonce = () => builderResetNonce();

export const clearBuilderResetBus = () => setBuilderResetNonce(0);
