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

fix(components/switcher): fix async support for selected switcher #1476 #1839

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

ickisIckis
Copy link
Collaborator

@ickisIckis ickisIckis commented Jun 27, 2024

fix(components/switcher): add async example for issue #1476

Библиотека

  • @prizm-ui/components
  • @prizm-ui/install
  • @prizm-ui/icons
  • @prizm-ui/theme

Компонент

Switcher

Задача

resolved #1476

Изменения

  • Имеются BREAKING CHANGES
  • Изменения документации
  • Добавление фичи
  • Исправление бага

Checklist:

  • После фичи обновил документацию
  • Сделал код чище чем был до этого
  • Тесты и линтер на рабочей машине успешно выполнились

Следует обратить внимание на ревью

Установка и смена выбранного элемента в свитчере и компонентах, его содержащих (крон etc)

@ickisIckis ickisIckis added the state:in_progress We work on this issue label Jun 27, 2024
@ickisIckis ickisIckis added this to the 4.4.0 milestone Jun 27, 2024
Copy link

github-actions bot commented Jun 27, 2024

Visit the preview URL for this PR (updated for commit 318395f):

https://prizm-v4--pr1839-fix-switcher-input-o-l026me23.web.app

(expires Mon, 15 Jul 2024 10:48:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7c62ed8dbabf5e2d6b2084ca9e107cc206d30dbd

@ickisIckis ickisIckis added availability:review and removed state:in_progress We work on this issue labels Jul 3, 2024
@ickisIckis ickisIckis changed the title fix(components/switcher): add async example for issue #1476 fix(components/switcher): fix async support for selected switcher #1476 Jul 3, 2024
Copy link
Contributor

@ZurabDev ZurabDev left a comment

Choose a reason for hiding this comment

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

LGTM

@alexhawkins94
Copy link

Ошибка в консоли при переходе в примеры свитчера
chrome_vXIpZP9Web

takeUntil(this.destroy$)
)
.subscribe(([switchers, selectedSwitcherIdx]) => {
if (!switchers.length) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Может вот эту логику перенести в tap до takeUntil

Сомтреть код в tap бывает удобно, а то у нас тут получилось что есть один тап потом часть в subscribe

https://blog.angulartraining.com/three-reasons-to-use-the-tap-operator-from-rxjs-6828fcf288ec

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Хороший поинт, спасибо!

@ickisIckis ickisIckis force-pushed the fix/switcher-input-order-1476 branch from 06b1554 to cc08d66 Compare July 9, 2024 14:21
Copy link
Contributor

@ZurabDev ZurabDev left a comment

Choose a reason for hiding this comment

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

LGTM

@ickisIckis ickisIckis modified the milestones: 4.4.0, 4.3.6 Jul 12, 2024
@ickisIckis ickisIckis added the state:ready ready for release (pass tested) label Jul 12, 2024
@ZurabDev ZurabDev merged commit 29744b2 into main Jul 17, 2024
4 of 5 checks passed
ZurabDev added a commit that referenced this pull request Sep 20, 2024
fix(components/switcher): fix async support for selected switcher #1476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
availability:tested state:ready ready for release (pass tested) version:4
Projects
None yet
3 participants