-
Notifications
You must be signed in to change notification settings - Fork 677
feat: create Svelte framework integration #4063
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
base: master
Are you sure you want to change the base?
Conversation
398befc to
0124d6e
Compare
| } | ||
| } | ||
|
|
||
| function formatValue(v: Value): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much of this code is duplicated across Vue, React, Svelte. Can we please consolidate it into a shared file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not certain that its worth for now since maybe we could reuse the ts client side query builder for the where clause logic? 🤔 i definetly wanna look into that when that pr lands :> But understandable if its better consolidated now and deleted now later 👍
In case you do end up consolidating it please keep the react version since there i added uuid support for the where clause 😇
| import { useSpacetimeDB, useTable, useReducer } from 'spacetimedb/svelte'; | ||
| import { tables, reducers } from './module_bindings'; | ||
|
|
||
| const conn = useSpacetimeDB(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this idiomatic for Svelte? See: https://discord.com/channels/@me/1414626136121676017/1463374453193834506
cloutiertyler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally looks good to me. Just two questions/comments in the code.
Description of Changes
The PR implements the following updates:
svelte-tstemplateScreenshots
svelte-tstemplateAPI and ABI breaking changes
Expected complexity level and risk
Testing