import type { PageLoad } from './$types' export const load: PageLoad = async ({ parent, data }) => { await parent() let { page_server_data } = data return { page_server_data, page_data: { message: 'hello world' }, } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter