Skip to content

fix: useKeyboardState tweaks#907

Merged
kirillzyusko merged 1 commit into
mainfrom
fix/use-keyboard-state-tweaks
Apr 9, 2025
Merged

fix: useKeyboardState tweaks#907
kirillzyusko merged 1 commit into
mainfrom
fix/use-keyboard-state-tweaks

Conversation

@kirillzyusko

@kirillzyusko kirillzyusko commented Apr 8, 2025

Copy link
Copy Markdown
Owner

📜 Description

Revisited some concepts of useKeyboardState/KeyboardController.state() etc.

💡 Motivation and Context

After preparing a new release I went through the changes and realized, that it would be better to take a step back and keep isVisible/state decoupled but useKeyboardState should return data to all variables (i. e. aggregate them).

📢 Changelog

Docs

  • mention animated hooks alternatives;

JS

  • don't include isVisible in .state method
  • update types declaration to show that state doesn't return null anymore;

🤔 How Has This Been Tested?

Tested via CI.

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 8, 2025
@kirillzyusko kirillzyusko self-assigned this Apr 8, 2025
@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

📊 Package size report

Current size Target Size Difference
176204 bytes 176188 bytes 16 bytes 📈

@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-04-09 12:14 UTC

@argos-ci

argos-ci Bot commented Apr 8, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 8, 2025, 12:17 PM

@kirillzyusko kirillzyusko marked this pull request as ready for review April 9, 2025 12:12
@kirillzyusko kirillzyusko merged commit 0c6ae77 into main Apr 9, 2025
@kirillzyusko kirillzyusko deleted the fix/use-keyboard-state-tweaks branch April 9, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant