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

chore: add export of type InstanceWithRootNode to use rootNode API #3276

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

JackUait
Copy link
Contributor

Проблема

Пользователи хотят получать доступ к корневым элементам из классовых компонентов

Решение

Добавил экспорт InstanceWithRootNode и описал как им пользоваться в документации

Ссылки

IF-1452

Чек-лист перед запросом ревью

  1. Добавлены тесты на все изменения
    ⬜ unit-тесты для логики
    ⬜ скриншоты для верстки и кросс-браузерности
    ✅ нерелевантно

  2. Добавлена (обновлена) документация
    ✅ styleguidist для пропов и примеров использования компонентов
    ⬜ jsdoc для утилит и хелперов
    ⬜ комментарии для неочевидных мест в коде
    ⬜ прочие инструкции (README.md, contributing.md и др.)
    ⬜ нерелевантно

  3. Изменения корректно типизированы
    ⬜ без использования any (см. PR 2856)
    ✅ нерелевантно

  4. Прочее
    ✅ все тесты и линтеры на CI проходят
    ✅ в коде нет лишних изменений
    ✅ заголовок PR кратко и доступно отражает суть изменений (он попадет в changelog)

@lossir lossir changed the title docs(README): add information about using .getRootNode in user's code chore: add export of type InstanceWithRootNode to use rootNode API Sep 25, 2023
@lossir lossir merged commit a61c549 into master Sep 25, 2023
6 checks passed
@lossir lossir deleted the feat/access-root-node-in-class-components branch September 25, 2023 16:58
HelenaIsh added a commit that referenced this pull request Oct 13, 2023
zhzz added a commit that referenced this pull request Oct 16, 2023
…ode API (#3276)"

This reverts commit a61c549.

Reason: we don't want this to a part of the public API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants