[✨] Receive requestEvent in server$ differently
#140
niconiahi
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
today, to access the
requestEventinside a clojure of aserver$primitive, you have to use the this keyword. I personally don't like using this like that, feels so imperative. Where is it coming from? feels extra magical. I would prefer seeing it coming a parameter as all the other primitives do. That way does feel really natural, because of the reactive (and functional IMO) nature of Qwik. The this really feels like classes. So because of that I've thought that maybe it would be interesting to change howrequestEventis "handed off" from Qwik Router toserver$Describe the solution you'd like
expectation:
as you control
server$, I think it should be possible to take the parameters' values when executingencryptInServer(in theonClick$) and provide them in theserver$as arguments but in a different way than todayDescribe alternatives you've considered
I didn't consider any other alternative, to be honest
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions