Skip to content

fix(EventBuilder): fix useTextBox, useFirebase persistence bug#2243

Merged
lindsey-volta merged 1 commit into
mainfrom
fix_switch_persistence
Sep 10, 2025
Merged

fix(EventBuilder): fix useTextBox, useFirebase persistence bug#2243
lindsey-volta merged 1 commit into
mainfrom
fix_switch_persistence

Conversation

@lindsey-volta
Copy link
Copy Markdown
Contributor

@lindsey-volta lindsey-volta commented Sep 9, 2025

Fix minor bug when persisting useTextBox field which was leading to inconsistent UI behavior.

  • useTextBox was writing to the same key storage value as useFirebase, which was causing a key collision and resulting in the inputs overwriting each other
  • The purpose of useHydratedPersistantBoolean is to save state to local storage so it can be remembered across page loads
  • When the page is reloaded, both states will be initialized from the last-written value and cause inconsistent UI behavior

@lindsey-volta lindsey-volta marked this pull request as ready for review September 9, 2025 19:47
@lindsey-volta lindsey-volta merged commit 40e9fbf into main Sep 10, 2025
7 checks passed
@lindsey-volta lindsey-volta deleted the fix_switch_persistence branch September 10, 2025 13:19
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.

2 participants