Skip to content

Fix: Jumpy input saving #5261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025
Merged

Fix: Jumpy input saving #5261

merged 1 commit into from
Jul 31, 2025

Conversation

celestial-vault
Copy link
Contributor

@celestial-vault celestial-vault commented Jul 30, 2025

\

Description

UseEffect was overwriting the input whenever the initialValue changed, which happened with every keystroke due to save-on-input.

Now, the user's input is not overwritten by the incoming value - it is treated as ground truth.

Test Procedure

Test that the input is no longer jumpy on fast keystrokes.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Removes useEffect in useDebouncedInput.ts to prevent input from being jumpy by preserving user's input as ground truth.

  • Behavior:
    • Removes useEffect in useDebouncedInput.ts that reset localValue on initialValue change, preventing input from being jumpy.
    • User's input is now preserved as ground truth, not overwritten by incoming values.

This description was created by Ellipsis for b5c9899. You can customize this summary. It will automatically update as commits are pushed.

Copy link

changeset-bot bot commented Jul 30, 2025

⚠️ No Changeset found

Latest commit: b5c9899

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

⚠️ Warning: Coverage decreased by 0.01%

Consider adding tests to cover your changes.

Overall Assessment

⚠️ Test coverage has decreased in this PR

Please consider adding tests to maintain or improve coverage.

Last updated: 2025-07-30T22:59:00.187276

@celestial-vault celestial-vault merged commit 2eb5738 into main Jul 31, 2025
13 checks passed
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