How to get value and re-render from an invoked actor in toggled state #5313
Replies: 1 comment
-
Sorry. I solved it myself. Thank you.
|
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.
-
In the code below, the value of counterActor changes, but the counter on the screen does not change because there is no rerendering.
I thought about using useSelector, but I couldn't use it properly because the state toggles.
What's the best way to do this?
Is it a bad design to invoke with a state that toggles in the first place?
I'm a beginner with this library, so I may be thinking differently.
Beta Was this translation helpful? Give feedback.
All reactions