Skip to content

Help with the isActive reactivity #30

Closed Answered by sibiraj-s
shyakadavis asked this question in Q&A
Discussion options

You must be logged in to vote

Okay. I copied some code to my local and tried it.

Change

const menuItems = []

to

$: menuItems = []

This should fix the issue.

I am moving this to a discussion as this is not an issue with editor. Let me know if that works?

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sibiraj-s
Comment options

Comment options

You must be logged in to vote
2 replies
@sibiraj-s
Comment options

@shyakadavis
Comment options

Answer selected by shyakadavis
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #29 on August 03, 2023 15:27.