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

Support for phx-hook #124

Open
simlay opened this issue Jun 24, 2024 · 0 comments
Open

Support for phx-hook #124

simlay opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
parity Used to note places where LVN is trying to achieve parity with vanilla live view.

Comments

@simlay
Copy link
Contributor

simlay commented Jun 24, 2024

LiveView uses phx-hook to support custom client-side events. In Phoenix LiveView, a hook is added to a LiveSocket in the opts: {}. The built in hooks are LiveFileUpload and InfiniteScroll.

Core currently has LiveChannel and LiveSocket which I've tried to make akin to LiveView's LiveSocket. Client side hooks should be added to liveview-native-core and exposed a reasonable way to add hook events to the clients.

@simlay simlay self-assigned this Jun 24, 2024
@mobile-bungalow mobile-bungalow added the parity Used to note places where LVN is trying to achieve parity with vanilla live view. label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parity Used to note places where LVN is trying to achieve parity with vanilla live view.
Projects
Status: No status
Development

No branches or pull requests

2 participants