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

What's the impact of having two LiveView on the same page? #28

Open
edisonywh opened this issue Apr 8, 2021 · 0 comments
Open

What's the impact of having two LiveView on the same page? #28

edisonywh opened this issue Apr 8, 2021 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@edisonywh
Copy link
Owner

I came across an issue where I include my app's app.js in Backoffice, which sets up LiveSocket, but the problem is Backoffice already sets up an instance of LiveSocket. I didn't dive too much into what the implications are but from what I saw it was causing handle_event being fired twice.

We need to further investigate this and document it, perhaps suggesting a workaround.

This also tie into how we allow users to supply user defined Hooks to our Backoffice LiveSocket

@edisonywh edisonywh added bug Something isn't working documentation Improvements or additions to documentation labels Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant