frontend
    Preparing search index...

    Function useFirstVisit

    • Manages first-visit detection for a game, controlling whether to show a tutorial suggestion dialog.

      Parameters

      • gameName: string

      Returns {
          dismiss: () => void;
          dismissPermanently: () => void;
          shouldShowDialog: boolean;
      }

      • dismiss: () => void

        Mark the game as visited, hiding the dialog for this game.

      • dismissPermanently: () => void

        Mark the game as visited and suppress the dialog for all future games.

      • shouldShowDialog: boolean