Skip to content

ref(ui): Consolidate server frontend hydration logic#13828

Merged
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/refui-consolidate-server-frontend-hydration-logic
Jun 26, 2019
Merged

ref(ui): Consolidate server frontend hydration logic#13828
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/refui-consolidate-server-frontend-hydration-logic

Conversation

@evanpurkhiser
Copy link
Member

This gets us one step closer to being able to boot the application without the backed serving the layout.html

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/refui-consolidate-server-frontend-hydration-logic branch from 73266b4 to 6a65153 Compare June 26, 2019 20:56
Copy link
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

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

☠️ what can go wrong?

Copy link
Member

Choose a reason for hiding this comment

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

nit: move this to a const or make it configurable from the API?

createReactClass,
};

// The SentryApp global contains exported app modules for use in javascript
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The SentryApp global contains exported app modules for use in javascript
// The SentryApp global contains exported app modules for use in JavaScript

:trollface:

};

// Make globals available on the window object
Object.keys(globals).forEach(name => (window[name] = globals[name]));
Copy link
Member

Choose a reason for hiding this comment

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

eww

);
} else if (languageOverride) {
setLocale(languageOverride);
languageCode = queryString.lang || config.user.options.language || languageCode;
Copy link
Member

Choose a reason for hiding this comment

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

TODO: see if we can also leverage navigator.language as a last resort.

@evanpurkhiser evanpurkhiser merged commit 596192d into master Jun 26, 2019
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/refui-consolidate-server-frontend-hydration-logic branch June 26, 2019 21:23
evanpurkhiser added a commit that referenced this pull request Jun 27, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants