vue3-google-signin icon indicating copy to clipboard operation
vue3-google-signin copied to clipboard

Memory Leak On Nuxt 3

Open amomammadw opened this issue 1 year ago • 2 comments

Memory Leak on server using onetap composable on app.vue

I face Memory Leak issue on my nuxt 3 application in production when I use OneTap Composable in my app.vue file to have the ability to login my users in whole application is there any solution to fix this issue or something in the package should be fixed? i also use SSR in my app and run the onetap login() in onMounted to make sure it is hydrated on client-side and also the isReady variable is not working on production environment it would be great to help me guys thanks

here's my code

onMounted(() => { setTimeout(() => { if (!isAuthenticated.value) { console.log("One tap"); login(); } }, 200); });

const { login, isReady } = useOneTap({ onError: handleOneTapError, disableAutomaticPrompt: true, onSuccess: handleOneTapSuccess, });

amomammadw avatar Feb 05 '24 13:02 amomammadw

Can you provide a reproducible?

kasvith avatar Mar 13 '24 08:03 kasvith

is this still happening in latest nuxt?

kasvith avatar Jul 10 '24 08:07 kasvith