Skip to content

Update onSubmit return type#3770

Merged
mluukkai merged 1 commit intofullstack-hy2020:sourcefrom
LUKASZ-JK:patch-1
Mar 25, 2026
Merged

Update onSubmit return type#3770
mluukkai merged 1 commit intofullstack-hy2020:sourcefrom
LUKASZ-JK:patch-1

Conversation

@LUKASZ-JK
Copy link
Copy Markdown
Contributor

Frontend patientor repo linked in exercise 9.8 has return type of void, not Promise. We do not actually return anything from the submitNewPatient function, it is only used to set state (patients or error). If my line of thinking is wrong and material is correct then I think the patientor repo should be updated to reflect the material.

Frontend patientor repo linked in exercise 9.8 has return type of void, not Promise<void>. We do not actually return anything from the submitNewPatient function, it is only used to set state (patients or error).
If my line of thinking is wrong and material is correct then I think the patientor repo should be updated to reflect the material.
@vejol vejol added the part 9 label Jan 3, 2025
@mluukkai mluukkai merged commit 1dacb08 into fullstack-hy2020:source Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants