Trouble understanding the reactivity of signals. #3944
Unanswered
zaira-bibi
asked this question in
Q&A
Replies: 1 comment
-
You are not providing quite enough information here. How are you using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Inside a component's body, we have to use closures to access the value of a reactive signal like this:
let y = move || x.get() * 2
In my app, I need to implement pagination controls and for that I'm doing something like:
let can_go_next = move || current_page.get() < total_pages
But I receive warnings in my browser about the signal being accessed outside a reactive tracking context. I am not able to understand why this might be so. Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions