Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Views are not syncing across browser windows in examples #35

Open
ijt opened this issue Sep 29, 2021 · 2 comments
Open

Views are not syncing across browser windows in examples #35

ijt opened this issue Sep 29, 2021 · 2 comments

Comments

@ijt
Copy link

ijt commented Sep 29, 2021

Steps taken:

  1. cd examples/slider
  2. go build
  3. ./slider
  4. Open http://127.0.0.1:3000 in two windows
  5. Play with the slider

Expected:
The same thing happens in both windows at the same time.

Actual:
Only the window where the user is interacting gets updated.

I also saw this with the todo example. It happened both on Chrome and Safari on Mac.

@brendonmatos
Copy link
Owner

Hi!
Yes, this is expected. Synchronization between tabs is an implementation/option for the server. The "rendering session" is started on each page load.

@ijt
Copy link
Author

ijt commented Sep 30, 2021

Ah, okay. How would you change the slider example to sync across tabs?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants