Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stop Preact from exposing VNode as ref #33500

Merged
merged 3 commits into from
Mar 26, 2021
Merged

Conversation

jridgewell
Copy link
Contributor

This is a hacky (only need in local dev) workaround for preactjs/preact#3084.

@jridgewell jridgewell requested a review from samouri March 25, 2021 21:18
@@ -79,6 +79,19 @@ describes.realWin('PreactBaseElement', {amp: true}, (env) => {
});
}

it('preact ref passing vnode smoke test', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Incredibly smart test for guaranteeing we clean up the hack. A+ I'm very impressed

@jridgewell jridgewell merged commit 4e6c96f into ampproject:master Mar 26, 2021
@jridgewell jridgewell deleted the preact branch March 26, 2021 02:48
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
* Stop Preact from exposing VNode as ref

* Add a smoke test

* Fix check
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants