Skip to content

complain when trying to bind an element to a second view#3805

Merged
SteffenDE merged 1 commit intomainfrom
sd-duplicate-init-2
May 20, 2025
Merged

complain when trying to bind an element to a second view#3805
SteffenDE merged 1 commit intomainfrom
sd-duplicate-init-2

Conversation

@SteffenDE
Copy link
Collaborator

This could happen when a project's app.js is loaded twice.

See https://elixirforum.com/t/how-do-you-debug-state-changes-using-liveviews/70044/21.

Supersedes #3721.

@SteffenDE
Copy link
Collaborator Author

I removed the global initialized check because I'm afraid it might lead to problems when importing LiveView from JS where one might actually want to do that.

@SteffenDE SteffenDE added this to the v1.1 milestone May 20, 2025
@SteffenDE SteffenDE merged commit cf53290 into main May 20, 2025
16 checks passed
@SteffenDE SteffenDE deleted the sd-duplicate-init-2 branch May 20, 2025 14:54
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.

1 participant