Skip to content

Commit

Permalink
Update STEPS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorascharff committed May 12, 2024
1 parent 3490179 commit a2339a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ Notes: Don't trust the input from the client.
- Return instead of throw error and timestamp (create timestamp)
- Add max limit messages sent 5.
- Return success
- Get this to the user: useActionState, add initial state and add span "errorMessage", "use client"
- Get this to the user: useActionState, add initial state and add span "errorMessage"
- Show the error in the form.
- Pass _prevState and return Promise< State>

Notes: Can be called without js and return state without js. UseActionState returns a wrapped action, when called useActionState will return the last result of the action. Could be any requirements for your data.
Notes: Create a component state when a form action is invoked. Can be called without js and return state without js. UseActionState returns a wrapped action, when called useActionState will return the last result of the action. Could be any requirements for your data.

## Toast message count

Expand Down

0 comments on commit a2339a8

Please sign in to comment.