From a665dbd88e8980085a5645962cd7583a47e26e1e Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 21 Nov 2017 18:07:00 +0100 Subject: [PATCH 01/36] Reproduce modqueue freeze issue --- .../coral-embed-stream/src/components/Stream.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/client/coral-embed-stream/src/components/Stream.js b/client/coral-embed-stream/src/components/Stream.js index 7ff48106b..69879d467 100644 --- a/client/coral-embed-stream/src/components/Stream.js +++ b/client/coral-embed-stream/src/components/Stream.js @@ -196,6 +196,15 @@ class Stream extends React.Component { ); } + launchDeathStar = () => { + for (let i = 0; i < 20; i++) { + this.props.postComment({ + asset_id: this.props.root.asset.id, + body: 'death is certain', + }); + } + } + render() { const { data, @@ -231,6 +240,12 @@ class Stream extends React.Component { return (
+ {highlightedComment && {open ?
Date: Mon, 4 Dec 2017 22:46:33 +0100 Subject: [PATCH 36/36] Use graphql document optimizations only in production --- client/coral-framework/services/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-framework/services/bootstrap.js b/client/coral-framework/services/bootstrap.js index 5e6173355..3ef6629c1 100644 --- a/client/coral-framework/services/bootstrap.js +++ b/client/coral-framework/services/bootstrap.js @@ -126,7 +126,7 @@ export async function createContext({ createGraphQLRegistry(plugins.getSlotFragments.bind(plugins)), { introspectionData, - optimize: true, + optimize: process.env.NODE_ENV === 'production', }, ); if (!notification) {