Chris-Adiante
Chris-Adiante
DDeno
Created by Chris-Adiante on 10/19/2023 in #help
[RESOLVED] Async Route vs Sync Route: Signatures are error-prone
Tried it out, refined it for my use case, implementing a definePage helper that already fetches my user session from the cookies and adds it to the context and voilá, everything works like a breeze and will keep me from making stupid mistakes. Thanks again for the quick response. I think it would be good to introduce the defineRoute helper already with the initial examples in the docs for those hands-on readers like me.
7 replies
DDeno
Created by Chris-Adiante on 10/19/2023 in #help
[RESOLVED] Async Route vs Sync Route: Signatures are error-prone
Marvin, thanks for the hint, I indeed overlooked the defineRoute helper (one of those TL;DR mistakes) and was about to write one myself (that would also put the request into the context). I will directly try the helper.
7 replies