issues
search
Seerden
/
Rack
Exercise tracking
0
stars
0
forks
source link
`Users`: register client-side
#3
Closed
Seerden
closed
2 years ago
Seerden
commented
2 years ago
Relates to #1.
Changes
[x] create Register component with change, blur, submit handlers to build a newUser object
[x] test form and render functionality
[x] implement a fetch function and query hook to POST to
/user/register
and store the inserted new user in the query cache
Seerden
commented
2 years ago
Follow-up:
[ ] log in automatically client-side (and server-side) on successful mutation (see e.g. #2)
extend Register form:
[ ] add button to toggle password visibility
[ ] implement better feedback messages as toasts
extend user account:
[ ] optionally implement registration by using email
[ ] figure out the best way to test query and mutation hooks (MSW?)
Relates to #1.
Changes
/user/register
and store the inserted new user in the query cache