Skip to content

Fix example build and make it a slider#25

Open
martinRenou wants to merge 4 commits intomainfrom
fix_example_build
Open

Fix example build and make it a slider#25
martinRenou wants to merge 4 commits intomainfrom
fix_example_build

Conversation

@martinRenou
Copy link
Copy Markdown
Member

@martinRenou martinRenou commented Apr 30, 2026

Screencast.From.2026-04-30.17-17-26.mp4

@martinRenou martinRenou added the bug Something isn't working label Apr 30, 2026
@martinRenou martinRenou changed the title Fix example build Fix example build and make it a working-ish example Apr 30, 2026
@martinRenou martinRenou changed the title Fix example build and make it a working-ish example Fix example build and make it a slider Apr 30, 2026
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.ydoc["state"] = self._state = Map()

I think pycrdt considers self.ydoc["_attrs"] to be candidate for synchronization, no?

Comment on lines +26 to +28
this.state.set('min', 0);
this.state.set('max', 100);
this.state.set('value', 50);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the initial value must be derived from the Python side by doing
JS -> Py: send state_vector
Py: compute update
Py -> JS: send update
JS: apply update and subscribe to observer pattern from there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants