From 333bb2cb0045292e53e1a6beea4b7f65dc383b8c Mon Sep 17 00:00:00 2001 From: Alip asmatpasha kamate <92592922+kamatealif@users.noreply.github.com> Date: Sat, 30 Aug 2025 11:52:52 +0530 Subject: [PATCH 1/2] update: switched components from Svelte 4 syntax to Svelte 5 switched the data props which is coming from the parent component to use the svelte 5 runes changes : export let data; to let { data } = $props(); and this works as well --- src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc b/src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc index 7b6ab6bf9a..01ee4a0648 100644 --- a/src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc @@ -29,7 +29,7 @@ Simple as that! Now, let's create the page itself. Replace the contents in `src/ import { addIdea, deleteIdea } from '$lib/ideas.js'; import { user } from '$lib/user.js'; - export let data; + let { data } = $props(); const add = async (e) => { e.preventDefault(); From 9b6919fdf037c02fc46ef3689a86dbb5c2dbe09b Mon Sep 17 00:00:00 2001 From: Alip asmatpasha kamate <92592922+kamatealif@users.noreply.github.com> Date: Sat, 30 Aug 2025 12:03:23 +0530 Subject: [PATCH 2/2] fix(appwrite): correct import to use tablesDB instead of databases ### Summary This PR fixes an incorrect Appwrite import that caused runtime errors. ### Changes - Updated `appwrite.js` to correctly export: ```js export const tablesDB = new TablesDB(client); --- src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc b/src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc index 460abc08c6..03c78fcee1 100644 --- a/src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc @@ -35,7 +35,7 @@ Create a new file `src/lib/ideas.js` and add the following code: ```client-web import { ID, Query } from 'appwrite'; -import { databases } from '$lib/appwrite'; +import { tablesDB } from '$lib/appwrite'; const IDEAS_DATABASE_ID = ''; // Replace with your database ID const IDEAS_TABLE_ID = ''; // Replace with your table ID @@ -62,4 +62,4 @@ export async function deleteIdea(id) { } ``` -Remember to use a store to hold data returned from Appwrite Databases, so your components can be updated when the data changes. \ No newline at end of file +Remember to use a store to hold data returned from Appwrite Databases, so your components can be updated when the data changes.