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

Enable svelte component hydration #60

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rkouye
Copy link
Contributor

@rkouye rkouye commented Jan 14, 2022

WIll improve behavior in runtime like ObservableHQ.

When ObservableHQ re-renders a cell, the behavior is different and it may create a new element instead. In some situations we ended up having charts created below the previous one and over and over, instead of updating the previously rendered chart.

Hydratable could help this situation to just update and re-use the previously rendered DOM.

Svelte doc: https://svelte.dev/docs#run-time-client-side-component-api-creating-a-component

To be properly tested.

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