Conversation
mat-hek
force-pushed
the
multi-socket
branch
from
September 16, 2026 12:34
8cc49fc to
2c5f0d9
Compare
Author
|
I figured that introducing viewSelector is problematic in many ways. The biggest problem is to make sure that roots belonging to a scoped socket aren't joined by any other socket, and they're there while their socket connects. Another issue is handling navigation and sticky views properly. Thus, I came up with a different API:
The implementation is partially vibe coded and I'm going to review it in detail, but meanwhile I'm curious what you think. |
mat-hek
force-pushed
the
multi-socket
branch
from
September 16, 2026 15:54
2c5f0d9 to
626b27f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an updated and extended version of #3564. Beyond viewSelector option, it also provides better separation between LiveSockets, so that one LiveSocket's root can be embedded in DOM of a view rendered by another one.
This addresses the main limitation preventing Local LiveView from relying solely on LV's public API.
If this gets merged, I'd like to contribute a public way to destroy LiveSockets, also needed by Local LiveView 😉