Skip to content

How to share server data to a client side script? #1481

Closed Answered by marvinhagemeister
PierBover asked this question in Q&A
Discussion options

You must be logged in to vote

There is nothing wrong with writing data in a script tag. That's the way to do it. We could introduce some Fresh specific APIs, but then again I'm not sure if it would be "better" than passing a script tag or just the same thing a little different. The main thing the props serialization for islands add on top, is signals and bigint serialization.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marvinhagemeister
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants