-
Notifications
You must be signed in to change notification settings - Fork 123
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
parseInt(new_scratch_preset) #908
Conversation
We should probably handle the initial case where parseInt returns NaN |
bleurgh. |
I give up :) |
eb7f6cb
to
1d3469c
Compare
nah this change is junk. |
54acd42
to
1d3469c
Compare
Right. am finally happy with this. I dont know if there is a better way that would replace the need for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for now. A better way to do this in future is probably to make a useLocalStorageState
hook that wraps useState
and useEffect
to load/store into localStorage automatically
looks good locally (and on Vercel)... the initial preset state is "Custom" but as soon as a platform is selected, the Preset works (for all platforms) - I dont know whether we care enough about that?
Fixes #907.