Move changelog loading to server

Summary: per title

Reviewed By: aigoncharov

Differential Revision: D32723706

fbshipit-source-id: ce5108da9f5da6fdfa7d1a66a31a4f8f430eb78d
This commit is contained in:
Michel Weststrate
2021-12-08 04:25:28 -08:00
committed by Facebook GitHub Bot
parent eab4f0d3d3
commit 129cbd6f7b
7 changed files with 55 additions and 55 deletions

View File

@@ -29,7 +29,7 @@ import {AppInspect} from './appinspect/AppInspect';
import PluginContainer from '../PluginContainer';
import {ContentContainer} from './ContentContainer';
import {Notification} from './notification/Notification';
import ChangelogSheet, {hasNewChangesToShow} from '../chrome/ChangelogSheet';
import {showChangelog} from '../chrome/ChangelogSheet';
import PlatformSelectWizard, {
hasPlatformWizardBeenDone,
} from '../chrome/PlatformSelectWizard';
@@ -98,9 +98,6 @@ export function SandyApp() {
})`;
registerStartupTime(logger);
if (hasNewChangesToShow(window.localStorage)) {
Dialog.showModal((onHide) => <ChangelogSheet onHide={onHide} recent />);
}
if (hasPlatformWizardBeenDone(window.localStorage)) {
Dialog.showModal((onHide) => (
@@ -113,6 +110,8 @@ export function SandyApp() {
));
}
showChangelog(true);
// don't warn about logger, even with a new logger we don't want to re-register
// eslint-disable-next-line
}, []);