Skip to content

feat: add render prop#9918

Open
SevereCloud wants to merge 1 commit into
masterfrom
SevereCloud/feat/add-render-prop
Open

feat: add render prop#9918
SevereCloud wants to merge 1 commit into
masterfrom
SevereCloud/feat/add-render-prop

Conversation

@SevereCloud

Copy link
Copy Markdown
Contributor

  • Unit-тесты
  • e2e-тесты
  • Дизайн-ревью
  • Документация фичи
  • Release notes

Описание

Добавляем свойство render для компонентов

Release notes

Улучшения

  • Для компонентов добавлено свойство render на замену Component

@SevereCloud SevereCloud requested a review from a team as a code owner June 10, 2026 09:26
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
JS 425.73 KB (+0.04% 🔺)
JS (gzip) 131.31 KB (+0.05% 🔺)
JS (brotli) 108.31 KB (-0.02% 🔽)
JS import Div (tree shaking) 945 B (+16.53% 🔺)
CSS 382.81 KB (0%)
CSS (gzip) 46.89 KB (0%)
CSS (brotli) 37 KB (0%)

@SevereCloud SevereCloud marked this pull request as draft June 10, 2026 09:29
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

📊 Найдены изменения в собранных файлах: Отчет

Commit a8cac1d

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.22%. Comparing base (c261f50) to head (a8cac1d).
⚠️ Report is 66 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9918   +/-   ##
=======================================
  Coverage   95.22%   95.22%           
=======================================
  Files         462      462           
  Lines       12516    12522    +6     
  Branches     4477     4478    +1     
=======================================
+ Hits        11918    11924    +6     
  Misses        598      598           
Flag Coverage Δ
unittests 95.22% <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 Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

👀 Docs deployed

📦 Package ✅

yarn add @vkontakte/vkui@https://development.s3.prodcloud.vk.team/pull/9918/a8cac1d6badb9809920309b20d176cf355a0d4a6/pkg/@vkontakte/vkui/_pkg.tgz

Commit a8cac1d

@SevereCloud SevereCloud force-pushed the SevereCloud/feat/add-render-prop branch from 994ae8b to a8cac1d Compare June 10, 2026 10:32
@github-actions

Copy link
Copy Markdown
Contributor

e2e tests

Playwright Report

};

if (render) {
return <RenderRootComponent render={render} getRootRef={getRootRef} {...resolvedProps} />;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

А точно нужно дополнительный узел в дереве создавать? Нельзя просто?

if (render) return render({ ...resolvedProps, getRootRef });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Нельзя, так как ругается компилятор

playground

@SevereCloud SevereCloud marked this pull request as ready for review June 18, 2026 10:15
@vkcom-publisher vkcom-publisher added the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants