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

Fix MiddlewareApp never properly applying settings passed as props. #836

Merged
merged 1 commit into from
Oct 15, 2018
Merged

Fix MiddlewareApp never properly applying settings passed as props. #836

merged 1 commit into from
Oct 15, 2018

Conversation

leonaves
Copy link
Contributor

@leonaves leonaves commented Sep 14, 2018

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.

@CLAassistant
Copy link

CLAassistant commented Sep 14, 2018

CLA assistant check
All committers have signed the CLA.

@cjjenkinson
Copy link

Bump ^

@akand074
Copy link

🙏

Copy link

@idstein idstein left a 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.

@vincenzo
Copy link
Contributor

vincenzo commented Oct 2, 2018

Please, get this in :)

@leonaves
Copy link
Contributor Author

leonaves commented Oct 2, 2018

@idstein I can take a look at pulling it out into a module tomorrow if you like

@huv1k
Copy link
Collaborator

huv1k commented Oct 3, 2018

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.

@huv1k huv1k merged commit 4d1a0b8 into graphql:master Oct 15, 2018
@huv1k
Copy link
Collaborator

huv1k commented Oct 15, 2018

Thanks for your first contribution! It will be in next release 🚀Sorry for such a delay

@leonaves leonaves deleted the bugfix/middleware-settings-not-passed branch October 15, 2018 09:24
@huv1k huv1k mentioned this pull request Oct 15, 2018
cgxxv pushed a commit to cgxxv/graphql-playground that referenced this pull request Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants