Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set boolean-type state variables #26

Closed
franciscoraposo opened this issue Jan 10, 2024 · 2 comments
Closed

Unable to set boolean-type state variables #26

franciscoraposo opened this issue Jan 10, 2024 · 2 comments

Comments

@franciscoraposo
Copy link

When I try to do SetState(NAME, true) nothing seems to happen, so GetState<bool>() will never return the new value. I had to resort to making it an integer value instead.

I haven't delved enough into the code to understand what's the possible cause

@momintlh
Copy link
Collaborator

I just tested this, and it is working fine on my end. You do need to provide the same key when getting a state.

SetState("Name", true);
GetState<bool>("Name");

@momintlh momintlh mentioned this issue Jan 16, 2024
9 tasks
@momintlh
Copy link
Collaborator

momintlh commented Jan 21, 2024

Tested and working in #30, in case the issue persists open another issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants