How to detect client (pushState) routing in loader
?
#5583
-
What is the best way to differentiate between client-routed requests and normal browser/curl requests, within Is this even supported?
Rationale: I've been thinking of ways to use On initial/full page loads (via outside links, or browser page refresh) I'd like to await all the promises and return an orderly rendered HTML page. However, when users navigate between pages via Remix's client-side routing, I'd like to return |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
#5084 seems to be a viable solution. |
Beta Was this translation helpful? Give feedback.
Actually it turns out the
Sec-Fetch-Dest
header is the way to go. See this comment from @sergiodxa