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

Fix devices#index status weirdness #461

Merged
merged 1 commit into from
May 1, 2019
Merged

Conversation

jjcarstens
Copy link
Collaborator

Turns out when I moved the devices#index page to LiveView, I forgot to remote the js
code connecting to a socket and watching for presence change events. So every now and
then there was a race condition between the JS updating devices statuses on the page
and LiveView.

So to fix, 💥 the socket javascript!

(Thanks to @mobileoverlord and @chrismccord for helping find this craziness)

Turns out when I moved the devices#index page to LiveView, I forgot to remote the js
code connecting to a socket and watching for presence change events. So every now and
then there was a race condition between the JS updating devices statuses on the page
and LiveView.

So to fix, 💥 the socket javascript!
@jjcarstens
Copy link
Collaborator Author

So previously I updated phoenix_live_view but turns out there is a new bug there (see phoenixframework/phoenix_live_view#201) which breaks all of our specs.

So I removed those updates and will work on cleaning that up later. For now, this is good to go

@mobileoverlord mobileoverlord merged commit 0f3b9f1 into master May 1, 2019
@mobileoverlord mobileoverlord deleted the fix_devices_index branch May 1, 2019 22:42
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.

3 participants