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(react): Set redux state context properly #5550

Merged
merged 2 commits into from Aug 9, 2022

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Aug 9, 2022

Fixes: #5536
ref: #5471

It turns out I misunderstood the state spec for state context. This fixes the state setter to be correct - we do need a nested object for it to render correctly in Sentry. See the Sentry code here: https://github.com/getsentry/sentry/blob/master/static/app/components/events/contexts/state.tsx

@jennmueng do you think this is the correct approach? We can also try to adopt a different schema.

@AbhiPrasad AbhiPrasad changed the title fix(redux): Set state context properly fix(react): Set redux state context properly Aug 9, 2022
@AbhiPrasad AbhiPrasad self-assigned this Aug 9, 2022
Copy link
Member

@jennmueng jennmueng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh interesting, let's merge this now to get this working but feels weird to have it be nested like this.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) August 9, 2022 18:35
@AbhiPrasad AbhiPrasad merged commit ac2dc12 into master Aug 9, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-redux-state-context branch August 9, 2022 18:47
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

Successfully merging this pull request may close these issues.

@sentry/browser "state" context appears as "None" in web UI
2 participants