Skip to content

Polyfill Element for Node - #6607

Merged
timdorr merged 2 commits into
masterfrom
element-polyfill
Mar 3, 2019
Merged

Polyfill Element for Node#6607
timdorr merged 2 commits into
masterfrom
element-polyfill

Conversation

@pshrmn

@pshrmn pshrmn commented Mar 2, 2019

Copy link
Copy Markdown
Contributor

Element is DOM only.

@timdorr
timdorr merged commit f4081ae into master Mar 3, 2019
@pshrmn
pshrmn deleted the element-polyfill branch March 3, 2019 01:56
@wmertens

Copy link
Copy Markdown
Contributor

It's not nice to randomly polyfill things in Node - how about just fixing the proptypes calls to not use Element if it doesn't exist?

@pshrmn

pshrmn commented Mar 15, 2019

Copy link
Copy Markdown
Contributor Author

Polyfill was a poor choice of words by myself; the definition is contained locally. That said, it has already been rewritten to use a more generic prop type.

https://github.com/ReactTraining/react-router/blob/4736cfe01dc71b6fa69b76ab946b6205447c3faa/packages/react-router-dom/modules/Link.js#L65

@lock lock Bot locked as resolved and limited conversation to collaborators May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants