Skip to content

Using a Proxy for $store item #4391

Answered by ekwoka
lobstar-devman asked this question in 1. Help
Discussion options

You must be logged in to vote

The issue is you're not properly using Reflect to pass the same this context.

You don't need to do this though

the store is automatically reactive, so just create an Alpine.effect that calls the function.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@lobstar-devman
Comment options

@SimoTod
Comment options

@lobstar-devman
Comment options

@SimoTod
Comment options

@lobstar-devman
Comment options

Comment options

You must be logged in to vote
1 reply
@lobstar-devman
Comment options

Answer selected by lobstar-devman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants