Empty event with useRequest()
I'm getting an empty event (no properties on the object) via
useServerContext()
even when isServer
is true. Is that ever supposed to happen? I'm using the cloudflare pages adapter if that narrows it down.3 Replies
I have an incredibly basic component that's just trying to append some cache headers:
responseHeaders
is always undefined and event seems to never have any propertiesOddly enough the component on the left works but on the right doesn't. So I guess it's a bundler thing?
Yeah when being imported from an outside package using
pnpm link
the useRequest
s get compiled into a useRequest
and a useRequest$1
with the later one functioning
Is there anything special I need to do to get the package on the right bundling correctly?