Skip to content

Passing data in CSP build #4397

Answered by SimoTod
fpsvogel asked this question in 1. Help
Oct 16, 2024 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

You can add the effect on the next tick or something like that (although then you have the problem that init won't see $props, basically both directives need to wait for the other ones) but, to be fair, it feels like it could be less complex.
Alpine allows you to add data layers to a specific context so you can have something like this: https://codepen.io/SimoTod/pen/QWevogX

Those are oversimplified examples but they may help you decide how to approach it.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@fpsvogel
Comment options

@SimoTod
Comment options

@fpsvogel
Comment options

@SimoTod
Comment options

Answer selected by fpsvogel
@ekwoka
Comment options

@fpsvogel
Comment options

@ekwoka
Comment options

@fpsvogel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants