In API routes, when is session
nullable?
#2239
Unanswered
davidhousedev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed something today in the typings for
HydrogenApiRoute
that caught me by surprise.session
is passed in via theapi
function options, but it is nullable. See:@shopify/hydrogen/dist/esnext/utilities/apiRoutes.d.ts
When would
session
benull
? Is this something I can control for?Beta Was this translation helpful? Give feedback.
All reactions