heyado
Explore posts from serversNuxt, Supabase, Pinia + target="_blank" link = missing data in components
I'm very new to this FE stack, but I've had a problem for days now. I just can't seem to fix it. In a component I have a link like this: <a href="some-other-site" target="_blank">Some xternal site</a>. When I click on the link and then go back to my site's tab, and click on an internal link, some components has stopped working. This is only the case with links that opens a new tab, if I leave _blank out, it's no problem to hit the back button in the browser, it all renders fine. When I get back to my tab I see this in my console:
// Always verify that the profile data exists and is fresh if (!profile.value profile.value.id !== verifiedUser.id) { await fetchProfile(verifiedUser.id) } } else if (event === 'SIGNED_OUT') { user.value = null user.value = null profile.value = null isInitialized.value = false } }) However, it seems like the data is missing just before the state change or something. I can't figure this out, any ideas? 🫶
Auth state changed: SIGNED_IN
That comes from my useAuthStore.js:
// Auth state change listener
auth.onAuthStateChange(async (event, session) => {
console.debug('Auth state changed:', event, 'Session exists:', !!session)
if (event === 'SIGNED_IN' event === 'TOKEN_REFRESHED') {
const { data: { user: verifiedUser }, error } = await auth.getUser()
if (error) {
console.error('User verification failed:', error)
user.value = null
profile.value = null
return
}
user.value = verifiedUser
// Always verify that the profile data exists and is fresh if (!profile.value profile.value.id !== verifiedUser.id) { await fetchProfile(verifiedUser.id) } } else if (event === 'SIGNED_OUT') { user.value = null user.value = null profile.value = null isInitialized.value = false } }) However, it seems like the data is missing just before the state change or something. I can't figure this out, any ideas? 🫶
11 replies
RRunPod
•Created by heyado on 8/16/2024 in #⚡|serverless
Best tips for lowering SDXL text2image API startup latency?
I'm currently using the https://github.com/ashleykleynhans/runpod-worker-a1111 along with a network volume. I only use a single model with the sd text2image endpoint and I don't need the UI. Right now, I'm experiencing an 80+ second delay for cold startups on the first request. Do you have any suggestions on how to optimize this (without 1 constant active worker)? Thanks in advance!
11 replies
RRunPod
•Created by heyado on 7/10/2024 in #⚡|serverless
Can I use a golang handler with serverless?
Tried to find info regarding this: is it possible to use golang for serverless? Any examples in that case?
17 replies
RRunPod
•Created by heyado on 7/3/2024 in #⚡|serverless
Connection timeout to host - ping errors
I've had these issues from tonight:
2024-07-03 10:06:02.167[nzqh67r97gnbio][error]ERROR | Error while getting job: Connection timeout to host https://api.runpod.ai/v2/f28vlarnz5ud1o/job-take/nzqh67r97gnbio?gpu=NVIDIA+RTX+A4000&job_in_progress=0
2024-07-03 10:06:02.167[nzqh67r97gnbio][error]ERROR | Ping Error: , attempting to restart ping.
Any ideas?
9 replies