Skip to content

Commit

Permalink
Update Vue 3 page props example (#293)
Browse files Browse the repository at this point in the history
Update it according to v1.0.4 release
  • Loading branch information
claytonfaria authored Apr 20, 2023
1 parent 659a997 commit f059e9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/js/Pages/shared-data.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ export default function () {
<script setup>
import { computed } from 'vue'
import { usePage } from '@inertiajs/vue3'
const user = computed(() => usePage().props.auth.user)
const page = usePage()
const user = computed(() => page.props.auth.user)
</script>
<template>
Expand Down

0 comments on commit f059e9e

Please sign in to comment.