Skip to content

fix(tabs): prevent unsynchronized state on toggle #274

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
Dec 1, 2023

Conversation

shortcuts
Copy link
Owner

📃 Summary

closes #273

the state doesn't really know which tab is the active one since we edit the state before leaving a tab.

this PR focuses on splitting concerns by handling the inactive tab cleanup at the TabLeave event time, while updating the active tab state at the TabEnter event level.

also fixes the refresh tab method which was messing up the order of the map by shifting everything at the first position

@shortcuts shortcuts self-assigned this Dec 1, 2023
@shortcuts shortcuts merged commit 55fffbc into main Dec 1, 2023
@shortcuts shortcuts deleted the fix/unsynchronized-state-tabs-toggle branch December 1, 2023 21:28
shortcuts pushed a commit that referenced this pull request Dec 1, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.6.3](v1.6.2...v1.6.3)
(2023-12-01)


### Bug Fixes

* **tabs:** prevent unsynchronized state on toggle
([#274](#274))
([55fffbc](55fffbc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Tab switching while NoNeckPain is enabled issue
1 participant