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

First cut of atom synced between JVM ↔ browser #253

Merged
merged 14 commits into from
Oct 31, 2022
Merged

First cut of atom synced between JVM ↔ browser #253

merged 14 commits into from
Oct 31, 2022

Conversation

mk
Copy link
Member

@mk mk commented Oct 31, 2022

When defining an atom with :nextjournal.clerk/sync metadata on the form, it will now get synced to the browser and interned in the sci env:

^::clerk/sync
(defonce my-state
  (atom {:counter 0}))

This works in principle but is inefficient because we're currently sending the whole notebook as a result of a recompute from the JVM to the bowser. Making this efficient by sending more granular changes is up next.

CleanShot.2022-10-31.at.11.14.01.mp4

@mk mk merged commit 0480bd5 into main Oct 31, 2022
@mk mk deleted the clerk/atom branch October 31, 2022 11:28
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