Describe the problem
I was reading the SvelteKit 3 migration guide and came across https://next.svelte.dev/docs/kit/migrating-to-sveltekit-3#Remote-functions-event.url-event.params-and-event.route-cannot-be-accessed-inside-queries
In our application we currently read these and pass through to activity logs (required for security auditing) in all remote functions so we have a record of which page/place they were invoked from. It’s purely metadata but would it be possible to still allow this going forward? Or is there a better workaround?
For context these are passed through to another API we run to be recorded (so we’re recording metadata against the API request. The built in instrumentation you have is great but doesn’t cover this case).
Describe the proposed solution
Either allow reading those properties again or support a workaround (maybe explicitly must use getRequestEvent).
Alternatives considered
Not support this
Importance
would make my life easier
Additional Information
There may be technical justification for this but if it’s just “users shouldn’t need to” hopefully this serves as a counter example !
Really appreciate all the work you’ve been doing recently - exciting times for Svelte ☺️
Describe the problem
I was reading the SvelteKit 3 migration guide and came across https://next.svelte.dev/docs/kit/migrating-to-sveltekit-3#Remote-functions-event.url-event.params-and-event.route-cannot-be-accessed-inside-queries
In our application we currently read these and pass through to activity logs (required for security auditing) in all remote functions so we have a record of which page/place they were invoked from. It’s purely metadata but would it be possible to still allow this going forward? Or is there a better workaround?
For context these are passed through to another API we run to be recorded (so we’re recording metadata against the API request. The built in instrumentation you have is great but doesn’t cover this case).
Describe the proposed solution
Either allow reading those properties again or support a workaround (maybe explicitly must use getRequestEvent).
Alternatives considered
Not support this
Importance
would make my life easier
Additional Information
There may be technical justification for this but if it’s just “users shouldn’t need to” hopefully this serves as a counter example !
Really appreciate all the work you’ve been doing recently - exciting times for Svelte☺️