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

feat: handle usage inside of LiveView #53

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: handle usage inside of LiveView #53

wants to merge 5 commits into from

Conversation

geolessel
Copy link
Owner

Since LiveView does its own DOM manipulation, we need a little extra to ensure that React components rendered inside of LiveView persists between updates.

For now, there is no `updated` hook defined because in my testing, I
couldn't find an instance in which it was ever called. I added a
`phx-hook: "ignore"` to the div so that subsequent updates don't
re-render the component.
@geolessel geolessel self-assigned this Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant