Upgrade to emotion v10
Summary: React 16 is not compatible with react-emotion 9 (it prints warnings, see also https://github.com/emotion-js/emotion/issues/644). So we should upgrade to 10. Reviewed By: mweststrate Differential Revision: D18905889 fbshipit-source-id: c00d2dbbadb1c08544632cb9bfcd63f2b1818a25
This commit is contained in:
committed by
Facebook Github Bot
parent
c3dfcbe601
commit
c0f902f81a
22
src/init.tsx
22
src/init.tsx
@@ -31,6 +31,8 @@ import React from 'react';
|
||||
import path from 'path';
|
||||
import {store} from './store';
|
||||
import {registerRecordingHooks} from './utils/pluginStateRecorder';
|
||||
import {cache} from 'emotion';
|
||||
import {CacheProvider} from '@emotion/core';
|
||||
|
||||
const logger = initLogger(store);
|
||||
const bugReporter = new BugReporter(logger, store);
|
||||
@@ -51,15 +53,17 @@ const AppFrame = () => {
|
||||
<TooltipProvider>
|
||||
<ContextMenuProvider>
|
||||
<Provider store={store}>
|
||||
{warnEmployee ? (
|
||||
<WarningEmployee
|
||||
onClick={() => {
|
||||
setWarnEmployee(false);
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<App logger={logger} bugReporter={bugReporter} />
|
||||
)}
|
||||
<CacheProvider value={cache}>
|
||||
{warnEmployee ? (
|
||||
<WarningEmployee
|
||||
onClick={() => {
|
||||
setWarnEmployee(false);
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<App logger={logger} bugReporter={bugReporter} />
|
||||
)}
|
||||
</CacheProvider>
|
||||
</Provider>
|
||||
</ContextMenuProvider>
|
||||
</TooltipProvider>
|
||||
|
||||
Reference in New Issue
Block a user