Sandrin Joy
net::ERR_ABORTED 502 (Bad Gateway)
We are getting too many net::ERR_ABORTED 502 (Bad Gateway) for files on local development and after refreshing several times it goes away.
then again it randomly comes up.
it doesn't happen when we run directly on localhost.
but happens when we use caddy and use a proxy url.
anyone faced similar issue & found a fix for this?
1 replies
how to avoid .value from return value of a composable
here i have a composable
export const useUser = () => {
const { status, data } = useAuth();
const { $store } = useNuxtApp();
const user = computed(() => $store.state.user);
return {
loggedIn: computed(() => status.value === "authenticated"),
user,
};
};
for using it,
i have to always type loggedIn.value
how to use it just as loggedIn ?
5 replies