Skip to content

Commit

Permalink
Merge 8e6804b into 8f69ee2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Mar 29, 2019
2 parents 8f69ee2 + 8e6804b commit a9c6a27
Show file tree
Hide file tree
Showing 19 changed files with 1,289 additions and 98 deletions.
2 changes: 1 addition & 1 deletion compat/mangle.json
Expand Up @@ -19,4 +19,4 @@
"$_processingException": "__p"
}
}
}
}
2 changes: 1 addition & 1 deletion debug/mangle.json
Expand Up @@ -31,4 +31,4 @@
"$_processingException": "__p"
}
}
}
}
8 changes: 7 additions & 1 deletion demo/index.js
@@ -1,7 +1,7 @@
import { createElement, render, hydrate, Component, options, Fragment } from 'preact';
// import renderToString from 'preact-render-to-string';
import './style.scss';
import { Router, Link } from './router';
import { Router, Link } from 'preact-router';
import Pythagoras from './pythagoras';
import Spiral from './spiral';
import Reorder from './reorder';
Expand All @@ -11,6 +11,7 @@ import Context from './context';
import installLogger from './logger';
import ProfilerDemo from './profiler';
import KeyBug from './key_bug';
import PeopleBrowser from './people';
import { initDevTools } from 'preact/debug/src/devtools';
import DevtoolsDemo from './devtools';

Expand All @@ -21,6 +22,9 @@ if (!isBenchmark) {
initDevTools();
}

// mobx-state-tree fix
window.setImmediate = setTimeout;

class Home extends Component {
a = 1;
render() {
Expand Down Expand Up @@ -61,6 +65,7 @@ class App extends Component {
<Link href="/context" activeClassName="active">Context</Link>
<Link href="/devtools" activeClassName="active">Devtools</Link>
<Link href="/empty-fragment" activeClassName="active">Empty Fragment</Link>
<Link href="/people" activeClassName="active">People Browser</Link>
</nav>
</header>
<main>
Expand All @@ -86,6 +91,7 @@ class App extends Component {
<Context path="/context" />
<DevtoolsDemo path="/devtools" />
<EmptyFragment path="/empty-fragment" />
<PeopleBrowser path="/people/:user?" />
</Router>
</main>
</div>
Expand Down

0 comments on commit a9c6a27

Please sign in to comment.