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

Refactor @tomic/svelte to Svelte 5 and update sveltekit-site template #1010

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

Polleps
Copy link
Member

@Polleps Polleps commented Nov 6, 2024

Related Issues

closes #700

Checklist

  • Add changelog entry linking to issue, describe API changes
  • Add or update tests if needed
  • Update docs if needed

@Polleps Polleps force-pushed the svelte-5-refactor-#700 branch from 1a0865f to 524d990 Compare November 6, 2024 14:41
@@ -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;
Copy link
Member

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
Copy link
Member

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.

Copy link
Member

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

const store = getStoreFromContext();
store.newResource({
isA: [dataBrowser.classes.Folder]
parant: 'some_other_subject',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent

@Polleps Polleps marked this pull request as ready for review November 7, 2024 12:13

[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.
Copy link
Member

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.

@Polleps Polleps force-pushed the svelte-5-refactor-#700 branch from e089f98 to edce8ba Compare November 7, 2024 12:20
@Polleps Polleps force-pushed the svelte-5-refactor-#700 branch from edce8ba to 0880269 Compare November 7, 2024 13:06
@joepio joepio merged commit d29a313 into develop Nov 11, 2024
1 check passed
@joepio joepio deleted the svelte-5-refactor-#700 branch November 11, 2024 09:43
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.

Svelte 5 refactor / use runes
2 participants