Skip to content

Add tldraw example#55

Merged
just-be-dev merged 2 commits intomainfrom
add-tldraw-example
Sep 25, 2024
Merged

Add tldraw example#55
just-be-dev merged 2 commits intomainfrom
add-tldraw-example

Conversation

@just-be-dev
Copy link
Copy Markdown
Owner

Something to note:

When I was first attempting this I added a persistence key which attempts to persist the canvas in localstorage. Using the html property for initializing the webview means that the origin is null which causes indexeddb to throw an error and tldraw to force a reload. Another consequence of using html to initialize is that if the page reloads you end up with an empty page. I've got a PR in Wry to add a load_html method so that the html can be re-initialized after a reload. I'll also eventually wire up with_navigation_handler so users can prevent redirects if they want.

Anyway, this is a huge milestone!

CleanShot 2024-09-25 at 10 32 37

@just-be-dev just-be-dev merged commit f4a8bf0 into main Sep 25, 2024
@just-be-dev just-be-dev deleted the add-tldraw-example branch September 25, 2024 14:35
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