Make Location page changing data reactive
This commit is contained in:
@@ -27,9 +27,10 @@
|
||||
|
||||
export let data: PageData
|
||||
|
||||
let { photos, totalPhotos }: { photos: any[], totalPhotos: number } = data
|
||||
$: ({ photos, totalPhotos } = data)
|
||||
const { location, product = undefined }: { location: any, totalPhotos: number, product: any } = data
|
||||
const { params } = $page
|
||||
let { photos }: { photos: any[] } = data
|
||||
const { location, totalPhotos, product = undefined }: { location: any, totalPhotos: number, product: any } = data
|
||||
|
||||
dayjs.extend(relativeTime)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user