Skip to content

Update onSubmit return type#3770

Open
LUKASZ-JK wants to merge 1 commit intofullstack-hy2020:sourcefrom
LUKASZ-JK:patch-1
Open

Update onSubmit return type#3770
LUKASZ-JK wants to merge 1 commit intofullstack-hy2020:sourcefrom
LUKASZ-JK:patch-1

Conversation

@LUKASZ-JK
Copy link
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
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.

2 participants