-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fix react-tutorial: typo, navbar reference and improve error handlig #1495
base: main
Are you sure you want to change the base?
Conversation
…dling - Add error handling to Ideas context - Add database creation instructions - Fix form submission clearing
The preview deployment is in progress. 🟡 Last updated at: 2024-11-13 21:03:02 CET |
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.
All of our tutorials should be the same so these changes will need to be replicated to the other tutorials as well
@@ -56,30 +64,43 @@ export function useIdeas() { | |||
|
|||
export function IdeasProvider(props) { | |||
const [ideas, setIdeas] = useState([]); | |||
const [error, setError] = useState(null); |
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.
This error
doesn't look like it's used anywhere 🧐
3. Give it a name (e.g. "ideas-tracker") | ||
4. Save the database ID as you'll need it later |
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.
The collection screenshot has "Ideas Tracker" for the name and "ideas-tracker" for the ID so let's use something similar for the database ID and name.
To store your ideas, you need to create a database first. | ||
|
||
1. Go to the Databases section in your Appwrite Console | ||
2. Click "Create Database" |
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.
Our convention is to bold text that appears in the UI so let's do:
2. Click "Create Database" | |
2. Click *Create Database* |
What does this PR do?
Updates doc React tutorial
Test Plan
/docs/tutorials/react/step-7