Skip to content

Commit 17cf885

Browse files
authored
Merge pull request #94 from crperezt/feature4
Fixes time-travel slider bug
2 parents 2e41fdd + 3607fe6 commit 17cf885

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/backend/linkFiber.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,10 @@ export default (snap: Snapshot, mode: Mode): ()=>void => {
229229
const devTools = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
230230
const reactInstance = devTools ? devTools.renderers.get(1) : null;
231231
fiberRoot = devTools.getFiberRoots(1).values().next().value;
232-
const throttledUpdateSnapshot = throttle(updateSnapShotTree, 140);
232+
233+
const throttledUpdateSnapshot = throttle(updateSnapShotTree, 70);
233234
document.addEventListener('visibilitychange', onVisibilityChange);
235+
234236
if (reactInstance && reactInstance.version) {
235237
devTools.onCommitFiberRoot = (function (original) {
236238
return function (...args) {

webpack.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22
const ChromeExtensionReloader = require('webpack-chrome-extension-reloader'); // enable hot reloading while developing a chrome extension
3-
const TypedocWebpackPlugin = require('typedoc-webpack-plugin');
3+
// const TypedocWebpackPlugin = require('typedoc-webpack-plugin');
44

55

66
const config = {
@@ -66,13 +66,13 @@ const config = {
6666
],
6767
},
6868
plugins: [
69-
new TypedocWebpackPlugin({
70-
name: 'Contoso',
71-
mode: 'modules',
72-
theme: './typedoc-theme/',
73-
includeDeclarations: false,
74-
ignoreCompilerErrors: true,
75-
}),
69+
// new TypedocWebpackPlugin({
70+
// name: 'Contoso',
71+
// mode: 'modules',
72+
// theme: './typedoc-theme/',
73+
// includeDeclarations: false,
74+
// ignoreCompilerErrors: true,
75+
// }),
7676
],
7777
};
7878

0 commit comments

Comments
 (0)