Skip to content

Is there any way to use Extension or State in non-handler functions without passing to them? #2764

Answered by mladedav
hlf20010508 asked this question in Q&A
Discussion options

You must be logged in to vote

Not really since the function would have to return different things for different requests and in the case of state different things for different handlers.

So you need a raw Request (or rather its extensions) and you could pass around that if you're using a lot of them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hlf20010508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants