Make small changes to tutorial (#2191)

This commit is contained in:
Filip Sodić 2024-07-17 11:54:36 +02:00 committed by GitHub
parent b5c15d1e3a
commit 6aafec4ddf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,10 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import { ShowForTs, ShowForJs } from '@site/src/components/TsJsHelpers';
import Collapse from '@site/src/components/Collapse';
In the previous section, we learned about using Queries to fetch data and only briefly mentioned that Actions can be used to update the database. Let's learn more about Actions so we can add and update tasks in the database.
In the previous section, you learned about using Queries to fetch data.
Let's now learn about Actions so you can add and update tasks in the database.
We have to create:
In this section, you will create:
1. A Wasp Action that creates a new task.
2. A React form that calls that Action when the user creates a task.

View File

@ -40,8 +40,8 @@ app TodoApp {
wasp: {
version: "^0.13.0"
},
title: "TodoApp",
// highlight-start
title: "TodoApp",
auth: {
// Tells Wasp which entity to use for storing users.
userEntity: User,