Skip to content

Pass through all props in withLive HOC#63

Merged
kitten merged 1 commit into
FormidableLabs:masterfrom
NikhilVerma:patch-1
Feb 28, 2018
Merged

Pass through all props in withLive HOC#63
kitten merged 1 commit into
FormidableLabs:masterfrom
NikhilVerma:patch-1

Conversation

@NikhilVerma
Copy link
Copy Markdown
Contributor

Fixes #48

@NikhilVerma
Copy link
Copy Markdown
Contributor Author

Actually I just saw that in the master branch after ErrorBoundary changes the HOC doesn't even work anymore. The "element" property is always the error boundary.

@kitten kitten changed the title Allow passing props to the HOC Pass through all props in withLive HOC Feb 28, 2018
@kitten
Copy link
Copy Markdown
Contributor

kitten commented Feb 28, 2018

Thanks for the fix! tbh I don't think I'm using the HOC in any of my personal projects, so I didn't notice this mistake.

Actually I just saw that in the master branch after ErrorBoundary changes the HOC doesn't even work anymore. The "element" property is always the error boundary.

That sounds unrelated? The HOC only passes on the context and the element is always wrapped in an error boundary component. The behaviour used to be different for React 15 though before a recent modification.

@kitten kitten merged commit 45bb953 into FormidableLabs:master Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants