-
Notifications
You must be signed in to change notification settings - Fork 739
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
Fix MiddlewareApp never properly applying settings passed as props. #836
Fix MiddlewareApp never properly applying settings passed as props. #836
Conversation
Bump ^ |
🙏 |
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.
Looks good. Only JSON.stringify reads looks a bit like a duplication of normalizeSettingsString as it intentionally defines null replacer and indentation.
Please, get this in :) |
@idstein I can take a look at pulling it out into a module tomorrow if you like |
I think we should merge it and release a new version, but currently, I don't have any rights to release so I will let it be here. I think the next release will be there shortly. |
Thanks for your first contribution! It will be in next release 🚀Sorry for such a delay |
Fixes #826, fixes #796, fixes #791, fixes #790, fixes #748, fixes #796
Basically, the MiddlewareApp component was never actually applying the settings it was passed. I think #759 was an attempted fix, but as PlaygroundWrapper doesn't actually pass settings to the Playground, all this meant was that the ThemeProvider component would take the settings applied over ones from redux. (Not merging them). This caused the weird hidden cursor bug, as if you didn't explicitly set the cursor but did set other options, you lost your cursor. This change means the settings should be merged correctly into the redux state, and the PlaygroundWrapper app can just take the settings from the state as it should.