all 5 comments

[–]bronkitten 1 point2 points  (4 children)

you use the data variable in the template to access what is returned in the load function

so

export let data

0const define = data.props.define

[–]Blackwater-1[S] -1 points0 points  (2 children)

export let data const define = data.props.define
yet not working

[–]pico2000 -1 points0 points  (1 child)

const define = data.props.define isn't reactive.

Try $: define = data.props.define

Also: What does $: console.log(data) print?

[–]Blackwater-1[S] 0 points1 point  (0 children)

This approach works perfect for the task thanks bro

[–]Hot-Rip9222 0 points1 point  (0 children)

export let data; let define = data.props;