-
Notifications
You must be signed in to change notification settings - Fork 54
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
Refactor @tomic/svelte to Svelte 5 and update sveltekit-site template #1010
Conversation
1a0865f
to
524d990
Compare
browser/lib/src/ontologies/core.ts
Outdated
@@ -112,7 +146,7 @@ declare module '../index.js' { | |||
[core.properties.write]: string[]; | |||
[core.properties.publicKey]: string; | |||
[core.properties.instances]: string[]; | |||
[core.properties.properties]: string[]; | |||
[core.properties.properties]: undefined; |
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.
:o
/** | ||
* Starts fetching a resource and adds it to the store. | ||
* An empty resource will be returned immediately that updates when the resource is fetched. | ||
* This way you can start rendering UI that |
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.
nietaf
This library is still at an early stage and the API is subject to change. | ||
An AtomicServer client for [Svelte](https://svelte.dev/). | ||
Makes fetching AtomicData easy. | ||
Fetched resources are chached and reactive, they will update when the data changes, even when the resource was changed by someone else. | ||
|
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.
mention older svelte version without runes and max supported version of @tomic/svelte
docs/src/svelte.md
Outdated
const store = getStoreFromContext(); | ||
store.newResource({ | ||
isA: [dataBrowser.classes.Folder] | ||
parant: 'some_other_subject', |
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.
parent
docs/src/svelte.md
Outdated
|
||
[See open source template: `atomic-sveltekit-demo` (outdated).](https://github.com/atomicdata-dev/atomic-sveltekit-demo) | ||
|
||
> **Note:** @tomic/svelte requires Svelte 5 or later. Svelte 4 is not supported. |
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.
Do mention that older versions do work.
e089f98
to
edce8ba
Compare
…e not in the resources classdefs #700
edce8ba
to
0880269
Compare
Related Issues
closes #700
Checklist