Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 21a4deb

Browse files
committed
fixed typo
1 parent 809efa4 commit 21a4deb

File tree

2 files changed

+5
-8
lines changed
  • benchmark/runtime
  • examples/react/develop/functional-component-ts/src

2 files changed

+5
-8
lines changed

benchmark/runtime/run.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ import { hideBin } from 'yargs/helpers';
66
// Loads environment variables from the '.env' file
77
dotenv.config();
88

9-
// TODO implement yargs https://yargs.js.org/
10-
119
// hideBind handles the 'process.argv.slice' logic
1210
const argv = yargs(hideBin(process.argv))
1311
.option('_', {
1412
type: 'string',
15-
default: ['./benchmarks/react/counter'],
13+
// default: ['./benchmarks/react/counter'],
1614
description: 'What benchmark to execute',
1715
})
1816
.option('dev', {
@@ -25,12 +23,10 @@ const argv = yargs(hideBin(process.argv))
2523
type: 'string',
2624
default: 'speed',
2725
description: 'What type of benchmark to be executed',
28-
}).argv;
29-
30-
console.log(argv);
26+
}).argv as any;
3127

3228
const entry = argv._[0];
33-
const isDev = argv.dev;
29+
const isDev = argv.dev || process.env.DEV === 'true';
3430
const benchmarkType = argv.type;
3531

3632
if (entry == null) {

examples/react/develop/functional-component-ts/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
STATE_OBJECT,
1515
} from './core';
1616
import { generateId } from '@agile-ts/utils';
17+
import { globalBind } from '@agile-ts/core';
1718

1819
let rerenderCount = 0;
1920
let rerenderCountInCountupView = 0;
@@ -69,7 +70,7 @@ const App = (props: any) => {
6970

7071
// Create global Instance of Core (for better debugging)
7172
useEffect(() => {
72-
// globalBind('__core__', { ...require('./core') });
73+
globalBind('__core__', { ...require('./core') });
7374
}, []);
7475

7576
const CountupView = () => {

0 commit comments

Comments
 (0)