-
Notifications
You must be signed in to change notification settings - Fork 546
Closed
Description
Version:
@inertiajs/vue3version: 1.0.9
Describe the problem:
I am using Inertia Vue 3 with SSR.
This works fine with v1.0.0 but after updating to the latest version I saw the memory of the GCP run container increasing to 100%. So it looks like a memory leak.
After some testing, the usePage() is the problem.
I changed all the usePage() to $page and the memory leak is gone.
Is it possible that this update ensures the memory leak?
https://github.com/inertiajs/inertia/pull/1469/files#diff-25b79295169393d2d80fe8246bba1ae0ec1b3cdffb6592d81b9f5ad63d8a7f97R130
Steps to reproduce:
This gives me a memory leak:
<template>
{{ user.name }}
</template>
<script>
import {usePage} from '@inertiajs/vue3';
computed: {
user() {
return usePage().props.auth.user;
},
},
</script>
And no memory leak when I just use:
<template>
{{ $page.props.auth.user.name }}
</template>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels