Replies: 2 comments 9 replies
-
There´s a header called kit/packages/kit/src/runtime/app/forms.js Line 99 in f953c9d |
Beta Was this translation helpful? Give feedback.
-
This solution checks for the Although, the code in hooks runs on every request, so you'd still have the issue of validation running on each page load. I suggest validating the cookie expiration in a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering if there is a way to discriminate in the server hooks whether an incoming request was issued by an action-triggered page refresh vs a page initial load.
Reason is that I run an handle in server hooks that need to validate a certain authorization cookie expiration only when pages first load, but skip that validation for all subsequent refreshes of same page, when those are triggered for instance by form submissions.
It would be great if there could be (in the
$app/navigation
module? In theevent
itself?) a property declaring whether the event is related to page first load or a subsequent reload.Beta Was this translation helpful? Give feedback.
All reactions