Replies: 1 comment
-
Just FYI what I ended up doing was: if (etag === weakHash) {
return json('' as unknown as {data: typeof data}, {status: 304})
} I don't love it, but it's the only way I could get this to work 🤷♂️ |
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
-
When using
notModified
together withETags
, how can I make it so that the type inference when usinguseLoaderData<typeof loader>
is not affected by this new "intermediate" response?Is it valid to do something like:
Beta Was this translation helpful? Give feedback.
All reactions