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

GSS issue error when changing layouts #5

Closed
scottpurdy opened this issue Sep 20, 2014 · 1 comment
Closed

GSS issue error when changing layouts #5

scottpurdy opened this issue Sep 20, 2014 · 1 comment

Comments

@scottpurdy
Copy link

I have two react classes and depending on the window width I display one or the other. But when I change the width and cross the boundary I get the following JS error and the layout is completely broken until I refresh:

Uncaught Error: Uncaught (c.InternalError) Objective function is unbounded in optimize (http://localhost:5000/static/js/gss/worker.js:17) gss.js:22167Engine.handleError

This is what the relevant part of my render function looks like. The props passed in are all instances of other react classes.

var content;
if ($(window).width() < 500) {
  content = <NarrowPresenterApp deckMain={deckMain} slideControls={slideControls} deckPreview={deckPreview} clock={clock} />;
} else {
  content = <WidePresenterApp deckMain={deckMain} slideControls={slideControls} deckPreview={deckPreview} clock={clock} />;
}

return <SiteTemplate>{content}</SiteTemplate>
@petehunt
Copy link
Owner

turning off mutation observers (which are a bad idea anyway) fixes this 54181ce

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

No branches or pull requests

2 participants