Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/sveltekit/step-6/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<YOUR_DATABASE_ID>'; // Replace with your database ID
const IDEAS_TABLE_ID = '<YOUR_TABLE_ID>'; // Replace with your table ID
Expand All @@ -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.
Remember to use a store to hold data returned from Appwrite Databases, so your components can be updated when the data changes.
2 changes: 1 addition & 1 deletion src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading