Skip to content

Commit

Permalink
Update playground to use proper usePage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Apr 20, 2023
1 parent 049d574 commit f14a291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playgrounds/vue3/resources/js/Components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import { Link, usePage } from '@inertiajs/vue3'
import { computed } from 'vue'
const appName = computed(() => usePage<{ appName: string }>().props.appName)
const page = usePage()
const appName = computed(() => page.props.appName)
</script>

<template>
Expand Down

0 comments on commit f14a291

Please sign in to comment.