Toggle state value using selector. #1000
-
Hi, I am trying to toggle a state variable in a selector but it doens't seem to change. I want this toggle function to be parameterless. When i trigger span's onClick nothing happens. Overlay shows if isSidenavOpen has default value of true. Stores:
React:
|
Beta Was this translation helpful? Give feedback.
Answered by
david-trumid
Apr 30, 2021
Replies: 1 comment 3 replies
-
not sure why you want it parameterless if you are only showing the span when it is open, think you want to pass
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Berkays
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not sure why you want it parameterless if you are only showing the span when it is open, think you want to pass
false
in that case right?. I think you want this though