Skip to content
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

refactor(useOrientationChange): rm useGlobalEventListener; make SSR ready #7811

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

inomdzhon
Copy link
Contributor

  • Unit-тесты
  • Release notes

Описание

  • SSR: инициализируем как 'portrait', а в эффекте меняем значение на актуальное
  • useGlobalEventListener: избавляемся, чтобы облегчить хук от лишних операций
  • покрываем тестами
  • реэкспоритурем тип Orientation

Release notes

Улучшения

  • useOrientationChange:
    • поправлена проблема с гидрациией при SSR;
    • добавлен экспорт типа Orientation.

…eady

- SSR: инициализируем как `'portrait'`, а в эффекте меняем значение на актуальное
- useGlobalEventListener: избавляемся, чтобы облегчить хук от лишних операций
- покрываем тестами
- реэкспоритурем тип `Orientation`
@inomdzhon inomdzhon added this to the v7.0.0-beta.1 milestone Oct 22, 2024
@inomdzhon inomdzhon self-assigned this Oct 22, 2024
@inomdzhon inomdzhon requested a review from a team as a code owner October 22, 2024 14:15
Copy link
Contributor

size-limit report 📦

Path Size
JS 380.65 KB (+0.04% 🔺)
JS (gzip) 115.34 KB (+0.01% 🔺)
JS (brotli) 94.95 KB (-0.04% 🔽)
JS import Div (tree shaking) 1.46 KB (0%)
CSS 331.94 KB (0%)
CSS (gzip) 42.06 KB (0%)
CSS (brotli) 33.16 KB (0%)

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

e2e tests

⚠️ Some screenshots were failed. See Playwright Report.

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit 7da0c44

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.09%. Comparing base (43a6605) to head (7da0c44).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7811      +/-   ##
==========================================
+ Coverage   95.08%   95.09%   +0.01%     
==========================================
  Files         376      376              
  Lines       11074    11079       +5     
  Branches     3677     3676       -1     
==========================================
+ Hits        10530    10536       +6     
+ Misses        544      543       -1     
Flag Coverage Δ
unittests 95.09% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@inomdzhon
Copy link
Contributor Author

Note

e2e tests

⚠️ Some screenshots were failed. See Playwright Report.

Playwright Report

Это флакнуло два скриншота на Gallery, этот PR не аффектит Gallery.

Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@inomdzhon inomdzhon modified the milestones: v7.0.0-beta.1, v7.0.0 Oct 23, 2024
@inomdzhon inomdzhon merged commit 74715c7 into master Oct 23, 2024
28 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/feat/refactor-useOrientationChange branch October 23, 2024 08:16
@inomdzhon inomdzhon modified the milestones: v7.0.0, v7.0.0-beta.1 Oct 23, 2024
@vkcom-publisher
Copy link
Contributor

v7.0.0-beta.1 🎉

@inomdzhon inomdzhon modified the milestones: v7.0.0-beta.1, v7.0.0 Dec 2, 2024
@vkcom-publisher
Copy link
Contributor

v7.0.0 🎉

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

Successfully merging this pull request may close these issues.

5 participants