Skip to content

feat : persist ForgeMode soundscape volume to localStorage#1890

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#1885
Open

feat : persist ForgeMode soundscape volume to localStorage#1890
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#1885

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Closes #1885

Summary of What Has Been Done

Added localStorage persistence for the ForgeMode soundscape volume preference.

Changes Made

  • Modified the volume state initialization to read from localStorage.getItem("forgeMode_volume") if a saved value exists, defaulting to 0.5
  • Added a useEffect that writes the volume value to localStorage.setItem("forgeMode_volume", volume) whenever the volume state changes

Impact it Made

  • Users no longer need to adjust their preferred volume every time they enter ForgeMode
  • Better UX continuity across page navigation and browser sessions
  • Minor but meaningful quality-of-life improvement for frequent ForgeMode users

Note: Please assign this PR to the tmdeveloper007 account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat : persist ForgeMode soundscape volume preference to localStorage

1 participant